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
Augie Fackler
7131a2f8b7
fancyopts: Parse options that occur after arguments.
...
This changes the behavior of qguard in the case of setting negative guards, as -- will now always be required.
Fixes issue1402.
Doc fixes for mq by mpm.
2009-02-10 13:26:00 -06:00
John Mulligan
53dbf005c3
mq: allow qclone's -p option to use path alias
...
Add support for running 'hg qclone -p foo bar' where foo is a path
alias defined in the [paths] section of an hgrc file.
2009-01-25 13:49:15 -05:00
Matt Mackall
9ca84951ff
mq: remove import of revlog
2009-01-12 10:59:08 -06:00
Matt Mackall
e0735a1762
error: move repo errors
...
rename NoCapability to CapabilityError
2009-01-12 10:42:31 -06:00
Martin Geisler
dc4fd3bf46
mq: lowercase output
...
This extension produces quite a lot of informational messages during
its normal operation and it is hard to say which strings can be
changed and which cannot.
2009-01-03 17:15:21 +01:00
Dirkjan Ochtman
aabce1d60c
mq: allow qpop if popped revisions are not working dir parents
2009-01-12 09:07:02 +01:00
Dirkjan Ochtman
59115793ee
mq: refactor the pop code to be more readable and allow more changes
2009-01-12 09:53:55 +01:00
Dirkjan Ochtman
b62067242a
merge with crew-stable
2009-01-12 09:13:45 +01:00
Bernhard Leiner
bf4052120f
mq: make qnew patch format consistent with qrefresh (issue1457)
2009-01-12 09:12:35 +01:00
Dirkjan Ochtman
7898fef4da
merge with crew-stable
2009-01-06 10:33:57 +01:00
Jason Orendorff
500c43b1e4
mq: don't warn about ambiguous patch name when using patch index (issue1439)
2009-01-06 10:30:22 +01:00
Benoit Boissinot
722aaa1329
merge with crew
2009-01-04 21:49:37 +01:00
Patrick Mezard
c8f0bb9bb7
mq: drop copy records when refreshing regular patches (issue1441)
...
Copy information was saved in a common loop, then refined in a git-only block.
The problem was the latter did filter out renames occuring in the current
patch and irrelevant to commit. In the non-git case, copy records still existed
in the dirstate, referencing removed files, making the commit to fail. Git and
non-git copy handling paths are now separated for simplicity.
Reported by Gary Bernhardt
2009-01-04 21:32:40 +01: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
Martin Geisler
a88ad2d84e
mq, i18n: mark strings for translation
2009-01-03 16:15:11 +01:00
Brendan Cully
cf56fc8fc1
mq: filter out empty commit messages in qfold
2008-12-01 20:10:02 -08:00
Brendan Cully
d745a27d99
mq: drop copy sources removed during qfold
...
(see issue1405)
2008-12-01 20:09:10 -08:00