How to show relative path in hg status

By default, hg status shows modified files with path from the root of the working directory. Most of the time, I would like it show the paths relative to my current directory.

There is no --relative option and due to the few people who need this feature, Mercurial developers have said that such a flag will not be added.

However, applying an empty regular expression or pattern to the status command gets the job done:

$ hg status re:
$ hg status ""

Tried with: Mercurial 3.4 and Ubuntu 15.10

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.