Bug 760 - hg status --copies does not work with --rev (edit)
:
:
Status: RESOLVED FIXED
:
:
:
Assigned To:
Bugzilla (edit) (take)

(edit)
:
Depends on: (edit)
Blocks: (edit)
  Show dependency treegraph
 
Reported: 2007-10-03 09:59 EDT by Patrick Mézard
Modified: 2012-05-13 04:58 EDT (History)
7 users (show)

(add)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Mézard 2007-10-03 09:59:12 EDT
Copies are only detected when referenced by the dirstate. The ability to know a
file used to be named like another in a previous rev may be useful to diff
across revisions. Having a copy/rename aware diff command maybe useful too.

$ hg init
$ echo a > a
$ hg ci -Am t
adding a
$ hg copy a b
$ hg ci -Am t
$ hg st --rev 0 --copies
A b
Comment 1 Whitney Sorenson 2007-11-14 13:54:57 EST
it doesn't work at all:

$ hg init
$ echo a > b
$ hg ci -Am 1
adding b
$ hg rename b a
$ hg st -C 
A a
  b
R b
$ hg ci -Am 2
$ hg st -C --rev 0 --rev 1
A a
R b

Note you can use diff -g:
$ hg diff -g -r 0 -r 1
diff --git a/b b/a
rename from b
rename to a
Comment 2 Matt Mackall 2008-10-19 11:36:28 EDT
Fixed in recent hg
Comment 3 Bugzilla 2012-05-12 08:44:03 EDT

--- Bug imported by bugzilla@serpentine.com 2012-05-12 08:44 EDT  ---

This bug was previously known as _bug_ 760 at http://mercurial.selenic.com/bts/issue760