Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

HgList extension for Mercurial

📅 2015-Jan-26 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ extension, hglist, ls, mercurial ⬩ 📚 Archive

When I am at the shell inside a Mercurial repository, I sometimes want to list only those files that are under version control and some details about them. Something like the ls command, but for Mercurial. That is exactly what the HgList extension for Mercurial sets out to do.

It can be installed from PyPI easily:

$ sudo pip install hglist

To enable it, add this line to your global .hgrc:

[extensions]
hglist =

It can be used at any directory inside any Mercurial repository:

$ hg list
$ hg ls
$ hg ls -l -H

Tried with: HgList 0.3, Mercurial 2.8.2 and Ubuntu 14.04


© 2022 Ashwin Nanjappa • All writing under CC BY-SA license • 🐘 @codeyarns@hachyderm.io📧