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

This widget could not be displayed.
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
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in Teamwork

What teamwork quotes inspire you?

Hey everyone! My name is Natalie and I'm an editor of the Atlassian Blog and I've got a question for you: What's your favorite quote about teamwork?  We've compiled a list here, along with...

161 views 16 7
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