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 vote
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 Join to answer
Community showcase
Jason Wong
Published yesterday in Agility Beta

Welcome to agility

Every team in the world is unique, and so   Atlassian believes   that each and every team's best way of working  needs to  be molded to their unique circumstances  – ...

278 views 6 15
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot