Initial download of Mercurial repo on bitbucket shows *every* file changed

When I try to clone this repo from a clean state:

SourceTree (Windows) is showing *every* file as edited, and *every* line of the files as new. In the screenshot, I've highlighted a particularly short file so that it'd be easy to see how each line is touched except the last.

I'm guessing that's a line-ending thing (?), which I wouldn't necessarily expect to happen, but I'm also unable to shelf "my changes"; there's no change after "shelving".

Haven't had this problem in the past with git repos.

Is there a Mercurial-specific setting for line-endings I've set incorrectly? Even so, why wouldn't I be able to shelf my "changes"?



1 answer

As step 1 to make sure line endings are the problem, check that "ignore whitespace" box above the diff. Your files will still be shown as modified on the right, but the diff should be empty if changes are white-space only.

Then check out this post on stack overflow:

EDIT: Sorry -- I should have mentioned that checking "Ignore Whitespace" does return nothing in the text area, so that is the difference.

Should Mercurial have downloaded the files and changed the line endings? That is, I would've expected the line endings to stay the same as in the repo on initial download. The screenshot shows *the initial state* after a clean pull for me. That seems like a bug, unless I'm missing a setting somewhere.

Similarly, I would've expected a Shelf to fix it.


Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Tuesday in United States

Administrators Cleanup

Good morning, After a long weekend cleaning up, I am still in the cleanup mode 😊. I am curious to know: When do you feel the urgency to cleanup your Atlassian Tools? How many times do y...

63 views 1 2
View post

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you