Brendan Cully
b632ccfd90
mq: support qimport -
2006-10-26 09:40:20 -07:00
Alexis S. L. Carvalho
aa3a52a4cd
make mq play nicely with the branch cache
...
- if no patches are applied, don't do anything different
- if the cache includes valid data from one of the patch revisions,
use the cache, but don't save anything new
- if the cache has data from before the patch revisions only,
save what the list of branches would be without the patch revisions
2006-10-23 23:32:56 -03:00
Benoit Boissinot
3f09dfef56
use xrange instead of range
2006-10-19 14:16:51 +02:00
Brendan Cully
c3df18d34b
patch: return list of modified files even when an exception is raised
...
The file list is passed in as an argument and updated in place.
This fixes issue399.
2006-10-18 10:37:34 -07:00
Brendan Cully
5bda764afc
mq: make qdelete without -k or a subrepository delete all patches
2006-10-12 14:02:41 -07:00
Brendan Cully
dbfd263f15
mq: change qdel --forget to --rev; accept any revision symbol
2006-10-12 13:24:09 -07:00
Brendan Cully
1bdb991336
mq: update qfold to call delete correctly
2006-10-03 16:36:40 -07:00
Thomas Arendsen Hein
0a7b982aa6
Whitespace/Tab cleanup
2006-10-01 19:26:33 +02:00
Brendan Cully
9e8bccc466
mq: raise util.Abort instead of using sys.exit(1)
2006-09-28 11:41:33 -07:00
Brendan Cully
e754f202f1
mq: don't write applied patches into series twice in restore
2006-09-27 14:50:20 -07:00
Brendan Cully
bb7a414550
mq: bail out if a patch appears more than once in the series file.
...
Closes : #379 .
2006-09-27 14:32:53 -07:00
Brendan Cully
589f502f37
mq: add --summary to qapplied, qunapplied, qtop, qnext and qprev
...
This moves most of the queue display code into qseries.
2006-09-27 13:34:20 -07:00
Brendan Cully
7c9528ede7
mq: Add --rev argument to qimport, to adopt existing changesets.
2006-09-19 10:22:30 -07:00
Brendan Cully
2e045795a2
qimport: rename patch to patchname to avoid shadowing module
2006-09-19 08:45:39 -07:00
Brendan Cully
d8b28f01d1
mq: handle patch names containing ":"
2006-09-14 22:52:47 +02:00
Brendan Cully
6222780283
mq: add qdelete --forget option
...
This removes an applied patch from the series and status files without
popping it. It is useful when an mq patch has been applied upstream.
2006-09-14 15:35:55 +02:00
Brendan Cully
4ee037e2c4
mq: do not update an empty working directory after strip.
...
Closes #296 .
2006-09-13 16:41:03 -07:00
Brendan Cully
50d115c936
mq: Add --git option to qrefresh
2006-09-12 11:11:19 -07:00
john.levon@sun.com
7605f2282e
Add the -s option to hg help qseries
.
2006-09-13 21:46:36 +02:00
Brendan Cully
5ee5b4abae
Make qrename handle directory targets; closes #333 .
2006-09-13 08:57:08 -07:00
Thomas Arendsen Hein
86029c616c
Fixed python2.3 incompatibility (rsplit) in qpush/qpop with index.
2006-09-12 17:27:41 +02:00
Benoit Boissinot
2067941fd0
merge with brendan
2006-09-09 12:51:05 +02:00
Brendan Cully
6cac22e075
strip: strip changelog before manifest
2006-08-30 15:13:45 -07:00
Thomas Arendsen Hein
d2082f10fc
Never apply string formatting to generated errors with util.Abort.
...
Otherwise error messages containing % chars yield errors or worse.
Fixed (hopefully) all users of util.Abort.
2006-09-08 09:36:18 +02:00
Brendan Cully
b733859249
Call patch.diff directly instead of printdiff - this also saves an
...
extra walk of the working directory.
2006-08-29 17:08:55 -07:00
Bryan O'Sullivan
c48ecf0092
qheader: exit withh meaningful error code.
2006-08-22 16:59:09 -07:00
Bryan O'Sullivan
5a2ca1b7f7
MQ: Make more commands return meaningful errors.
2006-08-22 16:03:55 -07:00
Bryan O'Sullivan
c679ba9347
qrefresh: exit with status 1 if no patches applied.
2006-08-22 15:14:35 -07:00
Vadim Gelfer
f7e52c304c
mq: fix bad interaction between demandload and update of commands.norepo
...
problem was that commands.norepo was not updated properly.
2006-08-21 13:59:17 -07:00
Brendan Cully
2af338f22f
mq: fix appliedname
2006-08-16 19:55:42 -07:00
Brendan Cully
b85f7240b1
mq help text updates and speling fixes
2006-08-16 19:53:42 -07:00
Brendan Cully
3c579c8031
Add qnew -e option.
2006-08-16 19:53:01 -07:00
Brendan Cully
6fb5a7ec26
allow qrefresh to take a list of files; closes #96 .
2006-08-16 19:52:21 -07:00
Brendan Cully
af32b3788b
Fix test-mq-qdiff; add -I and -X options to qdiff
2006-08-16 19:51:39 -07:00
Brendan Cully
e5d7aafaf2
Fix qfold after recent changes
2006-08-16 19:50:50 -07:00
Brendan Cully
16fb95a415
Teach mq about git patches
2006-08-16 19:49:45 -07:00
Vadim Gelfer
9614f4bd5b
redo merge with mpm.
...
previous merge at 8c0343e3f2b7 was bad.
2006-08-16 10:52:19 -07:00
Brendan Cully
2709262462
Unify mq and hg patch invocation.
...
This makes patch a little less verbose by default, so the tests
had to be updated.
2006-08-15 11:28:50 -07:00
Matt Mackall
6ecbc46d1a
Move ui.diffopts to patch.diffopts where it belongs
2006-08-15 11:34:08 -05:00
Brendan Cully
bc3e797936
Allow qdel to delete multiple patches.
2006-08-14 11:41:08 -07:00
Brendan Cully
4b6f1503bf
Replace qdel/qfold -f option with -k/--keep.
2006-08-14 11:24:19 -07:00
Vadim Gelfer
92dd5b8dc0
move commands.addremove_lock to cmdutil.addremove
2006-08-13 16:57:45 -07:00
Vadim Gelfer
80d6f2f7c7
remove localrepository.changes.
...
use localrepository.status instead.
2006-08-12 16:40:12 -07:00
Vadim Gelfer
13d751feaf
refactor text diff/patch code.
...
rename commands.dodiff to patch.diff.
rename commands.doexport to patch.export.
move some functions from commands to new mercurial.cmdutil module.
turn list of diff options into mdiff.diffopts class.
patch.diff and patch.export now has clean api for call from 3rd party
python code.
2006-08-12 16:13:27 -07:00
Vadim Gelfer
12c9f17ffe
merge.
2006-08-12 16:05:09 -07:00
Vadim Gelfer
7670c341e7
manifest.execf is now a function.
2006-08-12 16:04:49 -07:00
Vadim Gelfer
94b6c7e074
mq: demandload more
2006-08-12 14:15:23 -07:00
Vadim Gelfer
dc377b58c1
update copyrights.
2006-08-12 12:30:02 -07:00
Alexis S. L. Carvalho
27e6e90b97
Fix "hg qnew -f foo" without -m
...
The refresh method assumes it has a string.
2006-08-12 09:24:04 -03:00
Vadim Gelfer
ea424c45c0
merge with mpm.
2006-08-12 11:53:12 -07:00