churn: generalisation, now it is possible to see statistics grouped by custom template
Martin Geisler
mg at daimi.au.dk
Tue Oct 7 10:14:00 CDT 2008
Alexander Solovyov <piranha at piranha.org.ua> writes:
Hi Alexander
> cmdtable = {
> + "stats":
I really like the idea of more statistics for our repositories, but the
name 'stats' for the command is a little unfortunate: it makes
hg stat
ambigious since 'stat' is now a prefix of 'stats' and the more important
'status' command... So I have write at least
hg statu
I was going to suggest using the longer name 'statistics' for this
extension until I realized that 'stat' remains ambigious :-)
So would it be okay to make 'stat' an alias for 'status'? I could of
course also try to train my finger to use 'st', but I don't think it is
such a natural alias for me.
Here is a patch this adds the alias:
# HG changeset patch
# User Martin Geisler <mg at daimi.au.dk>
# Date 1223392317 -7200
# Node ID 89a515af8ffc8d6bee1faa3ef7f068f5c69456b5
# Parent 9bc46d069a76fca828379a08cc28751885f4e2bd
commands: alias status as stat
diff --git a/mercurial/commands.py b/mercurial/commands.py
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -3274,7 +3274,7 @@
(showconfig,
[('u', 'untrusted', None, _('show untrusted configuration options'))],
_('hg showconfig [-u] [NAME]...')),
- "^status|st":
+ "^status|stat|st":
(status,
[('A', 'all', None, _('show status of all files')),
('m', 'modified', None, _('show only modified files')),
diff --git a/tests/test-help.out b/tests/test-help.out
--- a/tests/test-help.out
+++ b/tests/test-help.out
@@ -214,7 +214,7 @@
use "hg -v help diff" to show global options
hg status [OPTION]... [FILE]...
-aliases: st
+aliases: stat, st
show changed files in the working directory
--
Martin Geisler
VIFF (Virtual Ideal Functionality Framework) brings easy and efficient
SMPC (Secure Multi-Party Computation) to Python. See: http://viff.dk/.
More information about the Mercurial-devel
mailing list