Is there a way to generate a diff in mercurial that only gives the file names? I'd like to do something like
diff -r 1 --file-names-only
and get something like
+AddedFile.java
-RemovedFile.java
/ChangedFile.java
/AnotherChangedFile.java
Is there a way to generate a diff in mercurial that only gives the file names? I'd like to do something like
diff -r 1 --file-names-only
and get something like
+AddedFile.java
-RemovedFile.java
/ChangedFile.java
/AnotherChangedFile.java
This should do the trick
hg status --rev revision1:revision2
Where revision1 and revision2 can be a changeset, tag etc.
hg diff
at all.
I see that you just want to see added/removed/changed files, etc. Thought it was something more complex. Shouldn't hg stat
do what you need, then?
status
is a basic command that everybody knows, because it's basically the same command for and CVS, SubVersion (I guess Hg used the same to keep things familiar for everyone), and it's explained soon on every tutorial
Jan 4, 2012 at 23:30
If you do not need stat info, then this output is a lot cleaner:
hg log --style status
# git log --name-status
If you want don't like the format of "status" style it can be customized even further using templates:
hg log --template "{rev} {subject}\n{files % ' {file}\n'}\n"
# git log --name-only