relative paths in stat output

Robin Becker robin at reportlab.com
Thu Apr 11 06:54:38 UTC 2019


Thanks to all who replied.  [commands] status.relative=True seems to work
for me.

On Thu, 11 Apr 2019 at 04:14, Matt Harbison <mharbison72 at gmail.com> wrote:

> On Wed, 10 Apr 2019 04:30:38 -0400, Robin Becker <robin at reportlab.com>
> wrote:
>
> > Is there a way to get stat to list files relative to the current
> working
> > directory; I often find myself trying to act on files whose relative
> > path differs from the one reported in stat output eg
> >
> >
> > REPO/---B1--C1
> >      |
> >      +---B2--C2
> >
> > if I am working in B2 the a file changed in C1 is listed in stat output
> > as
> > B1/C1/file and obviously I cannot do actions on B1/C1/file without
> > adding the ../
>
> Try this in hgrc:
>
>    [commands]
>    status.relative=True
>
> You might also be interested in `ui.tweakdefaults=True`.
>


-- 
Robin Becker
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20190411/058d86d2/attachment-0002.html>


More information about the Mercurial mailing list