Source tree revert messes up file permissions

Hi, I am using ST to interface with our Kiln-hosted Mercurial repository. I am on windows 7. Frequently if I revert a file ('Discard File') in ST, the is reverted correctly but with all the wrong permissions. In contrast, if I 'revert file' from Tortoise HG right-click, it reverts the file, but leaves the permissions intact. This causes problems with the files are on an IIS server and the app pool user requires certain permissions to read the file.

Has anyone else observed this behavior, and is it a bug? It seems like one to me, but maybe there is more to it.

1 answer

0 votes
Jeff Thomas Atlassian Team Feb 04, 2014

I don't think Mercurial stores the file permissions in the commit, so I'm not sure how Tortoise HG is preserving those permissions. I changed the permissions on a file and then used both SourceTree and the command line to revert the file, both times the permissions were reset. You might want to checkout this answer on StackOverflow.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted 13 hours ago in Agile

What is Scrum? A good, bad, and ugly answer.

In a world of dark-scrum, faux-scrum, and scrum-butt, the question still remains: What is scrum and how do you do it “right?” That’s the question we set out to answer. I'm Max, I've been teaching c...

56 views 0 1
Join discussion

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