[PATCH 0 of 3] Add hashdigits global option (with minor improvements).
Eric Hopper
hopper at omnifarious.org
Fri Jul 24 13:29:09 CDT 2009
Note: This new version includes some minor improvements over the
previous. The documentation for hashdigits in help is slightly better.
And a test that checked for ui.verbose or ui.debugflag has been changed
to ui.verbose since ui.verbose is implied by ui.debugflag.
This is a set of changes to both improve global option processing in
some small ways as well as add a global option to allow you to set the
number of hash digits printed by default in the output of various
commands.
I am weird and I prefer referring to revisions with their full hash
values even though 12 digits is enough that it will likely uniquely
identify every revision in a repository with a million changesets. I've
long maintained a patch that allows me to do this without using the
--debug flag, and I thought that a patch that allowed this to be
controlled more flexibly might be something a lot of people would want.
A config option is added as well. The 'hashdigits' option in the 'ui'
section.
[ui]
hashdigits=12
These changes can be pulled from:
http://hg.omnifarious.org/~hopper/merc-tocrew/
Or they can be pulled from the attached bundle.
----------
mercurial/fancyopts.py | 20 +++++++++++---------
mercurial/commands.py | 3 ++-
mercurial/cmdutil.py | 4 ++--
mercurial/commands.py | 14 +++++++-------
mercurial/dispatch.py | 2 ++
mercurial/patch.py | 2 +-
mercurial/ui.py | 29 +++++++++++++++++++++++++++++
tests/test-debugcomplete.out | 2 ++
tests/test-extension.out | 2 ++
9 files changed, 58 insertions(+), 20 deletions(-)
--
Eric Hopper - http://www.omnifarious.org/~hopper/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hashdigits.bdl
Type: application/octet-stream
Size: 2869 bytes
Desc: not available
Url : http://selenic.com/pipermail/mercurial-devel/attachments/20090724/71fd06d5/attachment.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 652 bytes
Desc: not available
Url : http://selenic.com/pipermail/mercurial-devel/attachments/20090724/71fd06d5/attachment.pgp
More information about the Mercurial-devel
mailing list