[Bug 3835] New: Add relative path option for hg status

mercurial-bugs at selenic.com mercurial-bugs at selenic.com
Wed Feb 20 02:03:31 CST 2013


          Priority: normal
            Bug ID: 3835
                CC: mercurial-devel at selenic.com
          Assignee: bugzilla at selenic.com
           Summary: Add relative path option for hg status
          Severity: feature
    Classification: Unclassified
                OS: All
          Reporter: barraponto at gmail.com
          Hardware: All
            Status: UNCONFIRMED
           Version: unspecified
         Component: Mercurial
           Product: Mercurial

The `hg status` command outputs paths relative to the repository root, by
default. One can override this behavior by passing a directory as an argument,
to output the paths relative to it. eg: `hg status .` would output the paths
relative to the current path, identical to `git status` behavior.

Setting hgrc to behave like that by default is somewhat awkward. See [this
StackOverflow question][1] for proposed solutions. But it should be easier,
something like this in .hgrc should be enough:

    relative_paths = 1

I expect this to be feasible, although I'm not sure relative_paths is the best
name for this setting. Also, I don't know whether it should change the behavior
of any other command than status (think of commands that output paths).


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

More information about the Mercurial-devel mailing list