relative paths in stat output

Pulkit Goyal 7895pulkit at gmail.com
Wed Apr 10 13:31:02 EDT 2019


On Wed, Apr 10, 2019 at 8:13 PM Dr Rainer Woitok <rainer.woitok at gmail.com>
wrote:

> Robin,
>
> On Wednesday, 2019-04-10 09:30:38 +0100, you wrote:
>
> > Is there a way to get stat to list files relative to the current working
> directory
>

Set the following config option:

[commands]
status.relative = True

and it should work.

>
> Put the following into the "[alias]" section of your "~/.hgrc" file:
>
> [alias]
>
>   .
>   .
>   .
>
> # When listing the status  of the repository,  return the paths relative
> # to the current working directory  rather than relative to the reposit-
> # ory's root directory  (since "st" is a built-in alias for "status", it
> # must be listed separately here):
>
> st     = status re:
> status = status re:
>
>
> Sincerely,
>   Rainer
> _______________________________________________
> Mercurial mailing list
> Mercurial at mercurial-scm.org
> https://www.mercurial-scm.org/mailman/listinfo/mercurial
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mercurial-scm.org/pipermail/mercurial/attachments/20190410/972c51ef/attachment.html>


More information about the Mercurial mailing list