Martin Geisler
6a3d9310ab
code style: prefer 'is' and 'is not' tests with singletons
2010-11-22 18:15:58 +01:00
Brodie Rao
5a1e1994ac
help: refer to user configuration file more consistently
...
Currently, a number of commands and help topics mention the user hgrc
file in different ways. Among these are following:
1. .hgrc - "please specify your commit editor/username in your .hgrc
file", bookmarks, color, hgk, pager, hg help environment
2. $HOME/.hgrc - hg help paths, hgrc(5), hg(1)
3. ~/.hgrc - hgrc(5)
In addition to being inconsistent, none of these make sense on
Windows. This patch replaces the above with a more general term of
"[your] configuration file".
2010-08-27 22:36:35 -04:00
FUJIWARA Katsunori
ce06b102df
help: show value requirement and multiple occurrence of options
...
this helps users to know what kind of option is:
- no value is required(flag option)
- value is required
- value is required, and multiple occurrences are allowed
each kinds are shown as below:
-f --force force push
-e --ssh CMD specify ssh command to use
-b --branch BRANCH [+] a specific branch you would like to push
if one or more 3rd type options are shown, explanation for '[+]' mark
is also shown as footnote.
2010-06-06 17:25:00 +09:00
Martin Geisler
efb4a38a04
Use our custom hg reStructuredText role some more
...
I missed these occurrences on my first scan through the source.
2010-05-18 16:31:10 +02:00
Benoit Boissinot
328394047f
fix coding style (reported by pylint)
2010-02-08 15:36:34 +01:00
Matt Mackall
8d99be19f0
many, many trivial check-code fixups
2010-01-25 00:05:27 -06:00
Matt Mackall
595d66f424
Update license to GPLv2+
2010-01-19 22:20:08 -06:00
Martin Geisler
9f1896c083
do not attempt to translate ui.debug output
2009-09-19 01:15:38 +02:00
Martin Geisler
887460b4bd
hgk: wrap docstrings at 70 characters
2009-07-26 01:47:25 +02:00
Martin Geisler
e7e772dea1
hgk: use reST syntax for literal blocks
2009-07-23 00:23:24 +02:00
Martin Geisler
93b11ee0f8
hgk: wrapped docstrings at 78 characters
2009-07-07 23:54:42 +02:00
Martin Geisler
47de8fd2cd
hgk: standardize cmdline help strings
2009-06-27 12:03:48 +02:00
Cédric Duval
dbcec5595d
extensions: improve the consistency of synopses
...
Trying as much as possible to consistently:
- use a present tense predicate followed by a direct object
- verb referring directly to the functionality provided
(ie. not "add command that does this" but simple "do that")
- keep simple and to the point, leaving details for the long help
(width is tight, possibly even more so for translations)
Thanks to timeless, Martin Geisler, Rafael Villar Burke, Dan Villiom
Podlaski Christiansen and others for the helpful suggestions.
2009-06-22 15:48:08 +02:00
Cédric Duval
0caffe860f
help: remove per-extension paragraph on how to enable it
...
The central place to find this information is the "extensions" help topic.
2009-06-20 20:57:13 +02:00
timeless
3ccbc308d0
Spell Mercurial as a proper noun
2009-06-09 09:25:31 -04:00
Martin Geisler
5b4e5428df
replace "i in range(len(xs))" with "i, x in enumerate(xs)"
...
The remaining occurrences should be the ones where "xs" is mutated or
where "i" is used for index arithmetic.
2009-05-26 22:59:52 +02:00
Martin Geisler
4176f5b789
replace xrange(0, n) with xrange(n)
2009-05-25 23:06:11 +02:00
Martin Geisler
d6db5e0057
use ui instead of repo.ui when the former is in scope
2009-05-24 22:37:20 +02:00
Benoit Boissinot
a3e85af994
hgk: use set instead of dict
2009-05-17 03:25:24 +02:00
Martin Geisler
7d509c2459
add blank line after copyright notices and after header
2009-04-26 01:25:53 +02:00
Martin Geisler
750183bdad
updated license to be explicit about GPL version 2
2009-04-26 01:08:54 +02:00
Martin Geisler
1d19c73016
hgk: word-wrap help texts at 70 characters
2009-04-04 23:17:33 +02:00
Martin Geisler
23608038bf
lowercase help output
...
Changes docstrings to begin with a lowercase word. Only docstrings
used in help output is changed.
Scripts are not expected to grep the output of 'hg help' so this
change should pose no problem with regard to the compatibility rules.
2009-01-03 17:15:15 +01:00
Dirkjan Ochtman
2f6d26d640
patch: turn patch.diff() into a generator
...
This should even be a little faster than passing in an fp argument.
2008-11-03 16:48:23 +01:00
Martin Geisler
b8d2a11cdc
i18n, hgk: mark command line options for translation
2008-09-06 17:44:01 +02:00
Martin Geisler
f01cc2696d
i18n: mark strings for translation in hgk extension
2008-08-31 16:12:02 +02:00
Matt Mackall
f706d75a90
hgk: fix parent breakage
2008-07-11 18:46:02 -05:00
Matt Mackall
d4ab55a92b
status: clean up all users for unknown files
2008-06-27 13:43:29 -05:00
Matt Mackall
bc715be859
add __len__ and __iter__ methods to repo and revlog
2008-06-26 14:35:50 -05:00
Matt Mackall
fbb5127472
use repo[changeid] to get a changectx
2008-06-26 14:35:46 -05:00
Dirkjan Ochtman
dc3b56ac83
convert comments to docstrings in a bunch of extensions
2008-06-12 11:33:47 +02:00
Patrick Mezard
e88a5081cb
hgk: difftree must match all files when supplied list is empty
2008-05-18 23:31:54 +02:00
Matt Mackall
fb88571d19
match: remove files arg from repo.status and friends
2008-05-12 11:37:08 -05:00
Matt Mackall
081e89551b
match: remove files argument from patch.diff
2008-05-12 11:37:08 -05:00
Matt Mackall
5213203b64
match: use match.files() for patch.diff
2008-05-12 11:37:08 -05:00
Matt Mackall
64da84d707
status: use match helpers for various users
2008-05-12 11:37:08 -05:00
Joel Rosdahl
c26213193c
Avoid importing mercurial.node/mercurial.repo stuff from mercurial.hg
2008-03-06 22:51:16 +01:00
Joel Rosdahl
4f8012378a
Remove unused imports
2008-03-06 22:23:41 +01:00
Matt Mackall
63cc8c83c8
transform a bunch of print statements to appropriate ui calls
2008-01-18 10:48:25 -06:00
Patrick Mezard
ba2d1c85b5
hgk: display branch name in diff header
2008-01-15 13:46:32 +01:00
Thomas Arendsen Hein
347da85c36
Removed tabs and trailing whitespace in python files
2007-12-29 19:49:48 +01:00
Patrick Mezard
0e612978e0
hgk: add basic usage and configuration documentation
2007-10-05 23:40:33 +02:00
Patrick Mezard
510efc6c01
hgk: add debug-config command to pass configuration options
2007-10-05 22:39:36 +02:00
Thomas Arendsen Hein
0b7147a667
Updated command tables in commands.py and hgext extensions.
...
- Marked for translation where extensions already had _()
- Corrected indentation
- fixed a few synopsises
2007-06-26 22:38:57 +02:00
Thomas Arendsen Hein
9270e4454c
hgk: Use $HG instead of hg (see 9779a8c8d672)
2007-06-23 21:10:55 +02:00
Matt Mackall
40ad41301e
hgk: remove embedded nulls in descriptions
2007-01-23 17:41:53 -06:00
Benoit Boissinot
e78320fa9c
hgk: (re)optimize reading of changelog and manifest
2006-12-26 03:42:17 +01:00
Benoit Boissinot
764aee51ba
hgk: use contexts
2006-12-26 03:27:24 +01:00
Benoit Boissinot
4df0c56a7a
hgk: remove unused code, node2 is always set
2006-12-26 03:26:23 +01:00
Benoit Boissinot
cd66ae056f
remove various unused import
2006-12-25 13:37:00 +01:00