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
Published 8 hours ago in Sourcetree

Tip from the team: configure your repos for hosting goodness!

Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...

54 views 0 1
Read article

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