There are more number of files that gets printed out with hg status
because it shows all files with changes, including permissions. hg diff
on the other hand, ignores permissions.
If I want to have a workflow where permission on the source tree is ignored, what kind of configuration do I need?
Asked
Active
Viewed 540 times
0

Forethinker
- 3,548
- 4
- 27
- 48
-
"status may appear to disagree with diff if permissions have changed **or a merge has occurred.** The standard diff format does not report permission changes and diff only reports changes relative to one merge parent." Do you also want to ignore changes in the other parent of a merge? – alexis Oct 05 '14 at 19:01
-
@alexis Not ignore all changes, but only the permission changes. Is that possible? – Forethinker Oct 06 '14 at 21:39
1 Answers
0
I haven't seen any evidence that what you ask for is possible. But your question is basically a duplicate of this one from 2011, which suggests the obvious work-around: Add a commit hook to normalize the permissions of your files, so that they don't change when you don't expect them to. Whether that's useful to you depends on why you need this fix in the first place.
-
The solution you have mentioned does not work for me, because these are files for web application in production. I guess I could go through the hassle of copying the files and then working with the mercurial hooks. uwsgi and nginx need more lenient permission, while the files on the repo is restrictive. – Forethinker Oct 06 '14 at 23:21