Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Source tree revert messes up file permissions

Deleted user February 4, 2014

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
Atlassian Team members are employees working across the company in a wide variety of roles.
February 4, 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
TAGS
AUG Leaders

Atlassian Community Events