Martin Geisler
3951831e0b
commands: use minirst parser when displaying help
2009-07-16 23:25:26 +02:00
Martin Geisler
88a6656cb1
mq: use ui.status when pushing and popping patches
2009-07-10 23:24:35 +02:00
Mads Kiilerich
b3ac6d2456
mq: qpop now tells which patches are popped
...
When navigating through a patch series by qpushing and qpopping it was easy to
get lost because qpop was silent. I found myself often running qnext after qpop
to see which patch I just dropped - especially if I was about to qrm it. This
patch makes qpop more symmetric to qpush by showing which patches are
applied/"unapplied".
I think it is a good change even though it changes output by adding a new line
of output.
2009-07-09 23:59:03 +02:00
Martin Geisler
3571ef287c
mq: wrapped docstrings at 78 characters
2009-07-07 23:54:42 +02:00
Alejandro Santos
1ef2fb42a7
compat: use 'key' argument instead of 'cmp' when sorting a list
2009-07-05 11:02:00 +02:00
Dan Villiom Podlaski Christiansen
1d4adbe287
mq: align columns in verbose qseries output.
2009-06-27 15:28:44 +02:00
Martin Geisler
d8c14d7c74
mq: standardize qfinish cmdline help string
2009-06-27 12:13:40 +02:00
Dirkjan Ochtman
1c6c4a9bc7
extensions: fix up description lines some more
2009-06-24 12:25:56 +02:00
Dirkjan Ochtman
501eaa4cfb
mq: compact & rewrap documentation for qdelete command
2009-06-24 12:03:13 +02:00
Cédric Duval
8a280aa6dc
mq: no longer mention the deprecated qdelete's --revision option
...
The option will no longer show up in the list, unless --verbose is used.
'qdel -r' has been deprecated in favor of qfinish since the 1.1 release.
It is still fully functional, but new users need not learn about it.
2009-06-23 22:20:25 +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
Dirkjan Ochtman
9685cd7ac9
mq: fix error message for qpush inexistent-patch (issue1702)
2009-06-21 17:34:33 +02:00
Dirkjan Ochtman
12ed4dc982
mq: unify code for qdel -r and qfin
2009-06-19 13:58:22 +02:00
Dirkjan Ochtman
d6eb9e3f55
mq: warn about finalizing patches without cset message
2009-06-19 12:37:29 +02:00
Patrick Mezard
7039de96dc
Make mq, record and transplant honor patch.eol
2009-06-15 00:03:27 +02:00
Adrian Buehlmann
d4fe84d762
mq: eliminate warning on qpush with empty series
...
Warning was "DeprecationWarning: use lock.release instead of del lock"
2009-06-08 20:02:44 +02:00
Benoit Boissinot
125a85ec87
use new style classes
2009-06-10 15:10:21 +02:00
timeless
fb33de67af
Generally replace "file name" with "filename" in help and comments.
2009-06-09 09:25:17 -04:00
timeless
3ccbc308d0
Spell Mercurial as a proper noun
2009-06-09 09:25:31 -04:00
Matt Mackall
19bea6fdda
mq: fix commit prototype
2009-06-03 17:07:41 -05:00
Matt Mackall
c1213eaf9d
commit: drop the now-unused files parameter
2009-06-01 14:11:32 -05:00
Matt Mackall
e12da484f7
mq: drop unneeded files args for commit
2009-06-01 13:51:21 -05:00
Cédric Duval
dc685aa920
mq: rename setheader to updateheader and fix comment
2009-05-30 19:37:01 +02:00
Cédric Duval
ee45037723
mq: initializing patchheader class directly from patch content
...
The patch header needs only be read in order to instantiate the class,
and as such it makes more sense to do it within the class.
2009-05-30 19:18:29 +02: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
0a365d5ca2
use 'x is None' instead of 'x == None'
...
The built-in None object is a singleton and it is therefore safe to
compare memory addresses with is. It is also faster, how much depends
on the object being compared. For a simple type like str I get:
| s = "foo" | s = None
----------+-----------+----------
s == None | 0.25 usec | 0.21 usec
s is None | 0.17 usec | 0.17 usec
2009-05-20 00:52:46 +02:00
Simon Heimberg
478d2c2e22
mq: new method invalidate
...
Introduce method invalidate (similar to dirstate and repo).
2009-05-05 10:29:34 +02:00
Simon Heimberg
ed59692bba
mq: only read files when needed
...
use util.propertycache as in dirstate
2009-05-04 03:35:42 +02:00
Patrick Mezard
e76a7010bb
Merge with crew-stable
2009-05-17 20:00:11 +02:00
David Frey
6d5875bc34
mq: abort qfold upon local changes (issue1662)
2009-05-16 16:20:37 -07:00
Dirkjan Ochtman
1e9b20dc8f
mq: qpush shouldn't complain if working dir is at a non-tip head
2009-05-15 15:21:17 +02:00
Dirkjan Ochtman
43d9564cff
some modernization cleanups, forward compatibility
2009-05-13 14:08:39 +02:00
Dirkjan Ochtman
9b104a6a4a
mq: add -P/--push option to qimport
2009-05-12 11:15:54 +02:00
Simon Heimberg
b21a1df0f0
mq: simpler check of first character of guard name
2009-05-04 03:49:57 +02:00
Martin Geisler
750183bdad
updated license to be explicit about GPL version 2
2009-04-26 01:08:54 +02:00
Matt Mackall
2f9b02c62d
replace util.sort with sorted built-in
...
This is marginally faster for small and moderately-sized lists
2009-04-26 16:50:44 -05:00
Matt Mackall
6708d0e299
add cmdutil.remoteui
...
remoteui sorts out the issues of getting ssh config options from the
local repo into the remote one while not copying other options like hooks.
2009-04-26 16:50:43 -05:00
Martin Geisler
e2222d3c43
replace set-like dictionaries with real sets
...
Many of the dictionaries created by dict.fromkeys were emulating sets.
These can now be replaced with real sets.
2009-04-22 00:57:28 +02:00
Martin Geisler
44aa7e92d1
util: use built-in set instead of util.unique
2009-04-22 00:56:06 +02:00
Ronny Pfannschmidt
0cd168d6ec
switch lock releasing in the extensions from gc to explicit
2009-04-22 02:01:22 +02:00
Martin Geisler
52ce98c9a8
help texts: write command line switches as -a/--abc
2009-04-18 14:40:21 +02:00
David Frey
feea6494c8
Update qimport help explaining how to read a patch from stdin (Issue371)
2009-04-18 00:21:11 -07:00
Martin Geisler
42fa3800bd
expand "rev" to "revision" in help texts
2009-04-07 23:06:50 +02:00
Martin Geisler
249541da43
expand "repo" to "repository" in help texts
2009-04-07 22:58:05 +02:00
Martin Geisler
ea1734b579
expand "dir" to "directory" in help texts
2009-04-07 22:47:56 +02:00
Martin Geisler
ac7200b59d
mq: word-wrap help texts at 70 characters
2009-04-04 23:18:03 +02:00
Martin Geisler
04b0d911a3
Change double spaces to single spaces in help texts.
2009-04-04 21:09:43 +02:00
Peter Arrenbrecht
a2d3e23eef
cleanup: drop variables for unused return values
...
They are unnecessary. I did leave them in localrepo.py where there is
something like:
_junk = foo()
_junk = None
to free memory early. I don't know if just `foo()` will free the return
value as early.
2009-03-23 13:13:02 +01:00
Matt Mackall
1a2d87e4e1
mq: handle empty patches more gracefully (issue1501)
2009-02-16 17:37:23 -06:00