3 ms·
You'd think it would be `hg id`, but it doesn't work without connection to remote repository and is extremely slow with large repositories with uncommited chang
by Grue3 7y ago
You'd think it would be `hg id`, but it doesn't work without connection to remote repository and is extremely slow with large repositories with uncommited changes, so it's not the correct answer. --debug option also prints info other than hash and can't be customized.
>Mercurial logs are also easy to customize.
I wanted to customize logging string so that it shows (sequential commit id) - (other stuff), but there's no way to make sequential commit id to line up neatly when it goes from 9 to 10, or from 99 to 100. So making a pretty one-line log is impossible. Maybe it was fixed since then, I wouldn't know.
- pseudalopex 7y ago"hg id" works offline. Adding "--debug" only makes the hash longer. It can be customized with a template like "hg log". Looking for uncommitted changes is what makes it slow. The fsmonitor extension makes it faster. Adding "-r ." skips it. The "pad" function was added in 2014.[1] [1] https://www.mercurial-scm.org/pipermail/mercurial-devel/2014-February/055985.html https://www.mercurial-scm.org/pipermail/mercurial-devel/2014...