[Bug 4449] New: "hg status" should offer '--show-rename'

mercurial-bugs at selenic.com mercurial-bugs at selenic.com
Tue Nov 11 15:23:12 CST 2014


http://bz.selenic.com/show_bug.cgi?id=4449

          Priority: normal
            Bug ID: 4449
                CC: mercurial-devel at selenic.com
          Assignee: bugzilla at selenic.com
           Summary: "hg status" should offer '--show-rename'
          Severity: feature
    Classification: Unclassified
                OS: All
          Reporter: d155601 at drdrb.com
          Hardware: PC
            Status: UNCONFIRMED
           Version: unspecified
         Component: Mercurial
           Product: Mercurial

If I rename some files with git-diff enabled, "hg diff" will show me renames. 
For example:

    $ hg diff

    diff --git a/foo/x b/foo/y
    rename from foo/x
    rename to foo/y

This is good.

"hg status", however, will not show such information:

    $ hg status

    A foo/x
    R foo/y

This is unfortunate.  We effectively lose information.  And, with large numbers
of renames, the output is hard to read and review.

Something like this would be nice:

    $ hg status --show-renames

    A foo/x (renamed from foo/y)

I realise that we already have "hg status --copies", but this isn't quite
sufficient, as for renames we still see both "A" and "R" for every renamed file
(which is a big problem if we've renamed many files).

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Mercurial-devel mailing list