2006-08-09 13:04:49 +04:00
|
|
|
adding x
|
2009-01-03 19:15:21 +03:00
|
|
|
patch queue now empty
|
2006-08-09 13:04:49 +04:00
|
|
|
% should fail
|
2007-03-03 19:54:13 +03:00
|
|
|
abort: no patch named does-not-exist.patch
|
|
|
|
% should fail
|
2006-08-09 13:04:49 +04:00
|
|
|
abort: no patches applied
|
|
|
|
applying a.patch
|
2009-01-03 19:15:21 +03:00
|
|
|
now at: a.patch
|
2006-08-09 13:04:49 +04:00
|
|
|
% should guard a.patch
|
|
|
|
% should print +a
|
|
|
|
a.patch: +a
|
2009-01-03 19:15:21 +03:00
|
|
|
patch queue now empty
|
2008-11-23 11:44:31 +03:00
|
|
|
% should fail
|
|
|
|
cannot push 'a.patch' - guarded by ['+a']
|
2006-08-09 13:04:49 +04:00
|
|
|
a.patch: +a
|
|
|
|
% should push b.patch
|
|
|
|
applying b.patch
|
2009-01-03 19:15:21 +03:00
|
|
|
now at: b.patch
|
|
|
|
patch queue now empty
|
2008-05-18 19:01:24 +04:00
|
|
|
% test selection of an empty guard
|
|
|
|
abort: guard cannot be an empty string
|
2006-08-11 01:58:10 +04:00
|
|
|
number of unguarded, unapplied patches has changed from 2 to 3
|
2006-08-09 13:04:49 +04:00
|
|
|
% should push a.patch
|
|
|
|
applying a.patch
|
2009-01-03 19:15:21 +03:00
|
|
|
now at: a.patch
|
2006-08-09 13:04:49 +04:00
|
|
|
% should print -a
|
|
|
|
c.patch: -a
|
|
|
|
% should skip c.patch
|
|
|
|
applying b.patch
|
2006-12-12 21:11:01 +03:00
|
|
|
skipping c.patch - guarded by '-a'
|
2009-01-03 19:15:21 +03:00
|
|
|
now at: b.patch
|
2007-05-06 20:19:25 +04:00
|
|
|
% should display b.patch
|
|
|
|
b.patch
|
2006-08-09 13:04:49 +04:00
|
|
|
% should push c.patch
|
|
|
|
applying c.patch
|
2009-01-03 19:15:21 +03:00
|
|
|
now at: c.patch
|
|
|
|
patch queue now empty
|
2006-08-09 13:04:49 +04:00
|
|
|
guards deactivated
|
2006-08-11 01:58:10 +04:00
|
|
|
number of unguarded, unapplied patches has changed from 3 to 2
|
2006-08-09 20:38:11 +04:00
|
|
|
% should push all
|
2006-08-09 13:04:49 +04:00
|
|
|
applying b.patch
|
|
|
|
applying c.patch
|
2009-01-03 19:15:21 +03:00
|
|
|
now at: c.patch
|
|
|
|
patch queue now empty
|
2006-08-11 04:18:55 +04:00
|
|
|
number of unguarded, unapplied patches has changed from 1 to 2
|
|
|
|
% should push a.patch, not b.patch
|
|
|
|
applying a.patch
|
2009-01-03 19:15:21 +03:00
|
|
|
now at: a.patch
|
2006-08-11 04:18:55 +04:00
|
|
|
applying c.patch
|
2009-01-03 19:15:21 +03:00
|
|
|
now at: c.patch
|
|
|
|
patch queue now empty
|
2006-08-11 04:18:55 +04:00
|
|
|
% should push b.patch
|
2006-08-09 20:38:11 +04:00
|
|
|
applying b.patch
|
2009-01-03 19:15:21 +03:00
|
|
|
now at: b.patch
|
2007-04-13 00:41:50 +04:00
|
|
|
applying c.patch
|
2009-01-03 19:15:21 +03:00
|
|
|
now at: c.patch
|
2007-04-13 00:41:50 +04:00
|
|
|
c.patch
|
2009-01-03 19:15:21 +03:00
|
|
|
patch queue now empty
|
2006-08-11 01:58:10 +04:00
|
|
|
number of unguarded, unapplied patches has changed from 2 to 3
|
2006-08-11 04:18:55 +04:00
|
|
|
% should push a.patch, b.patch
|
2006-08-09 20:38:11 +04:00
|
|
|
applying a.patch
|
2009-01-03 19:15:21 +03:00
|
|
|
now at: a.patch
|
2006-08-11 04:18:55 +04:00
|
|
|
applying b.patch
|
2009-01-03 19:15:21 +03:00
|
|
|
now at: b.patch
|
|
|
|
patch queue now empty
|
2006-08-11 01:58:10 +04:00
|
|
|
number of unguarded, unapplied patches has changed from 3 to 2
|
2006-08-11 04:18:55 +04:00
|
|
|
% list patches and guards
|
|
|
|
a.patch: +1 +2 -3
|
|
|
|
b.patch: +2
|
|
|
|
c.patch: unguarded
|
|
|
|
% list series
|
|
|
|
0 G a.patch
|
|
|
|
1 U b.patch
|
|
|
|
2 U c.patch
|
|
|
|
% list guards
|
|
|
|
1
|
|
|
|
2
|
|
|
|
3
|
2006-08-09 20:38:11 +04:00
|
|
|
% should push b.patch
|
|
|
|
applying b.patch
|
2009-01-03 19:15:21 +03:00
|
|
|
now at: b.patch
|
2006-08-11 01:58:10 +04:00
|
|
|
applying c.patch
|
2009-01-03 19:15:21 +03:00
|
|
|
now at: c.patch
|
2006-08-11 01:58:10 +04:00
|
|
|
guards deactivated
|
|
|
|
popping guarded patches
|
2009-01-03 19:15:21 +03:00
|
|
|
patch queue now empty
|
2006-08-11 01:58:10 +04:00
|
|
|
reapplying unguarded patches
|
|
|
|
applying c.patch
|
2009-01-03 19:15:21 +03:00
|
|
|
now at: c.patch
|
2006-08-11 04:18:55 +04:00
|
|
|
% guards in series file: +1 +2 -3
|
|
|
|
+1
|
|
|
|
+2
|
|
|
|
-3
|
|
|
|
% should show c.patch
|
|
|
|
c.patch
|
2006-11-20 01:47:19 +03:00
|
|
|
% should show :
|
|
|
|
% new.patch: +1 +2 -3
|
|
|
|
% b.patch: +2
|
|
|
|
% c.patch: unguarded
|
|
|
|
new.patch: +1 +2 -3
|
|
|
|
b.patch: +2
|
|
|
|
c.patch: unguarded
|
2009-01-03 19:15:21 +03:00
|
|
|
now at: c.patch
|
2006-12-02 23:41:07 +03:00
|
|
|
% should show new.patch and b.patch as Guarded, c.patch as Applied
|
|
|
|
% and d.patch as Unapplied
|
|
|
|
0 G new.patch
|
|
|
|
1 G b.patch
|
|
|
|
2 A c.patch
|
|
|
|
3 U d.patch
|
|
|
|
% new.patch, b.patch: Guarded. c.patch: Applied. d.patch: Guarded.
|
|
|
|
0 G new.patch
|
|
|
|
1 G b.patch
|
|
|
|
2 A c.patch
|
|
|
|
3 G d.patch
|
2009-01-03 19:15:21 +03:00
|
|
|
patch queue now empty
|
2007-03-18 21:41:28 +03:00
|
|
|
new.patch: +1 +2 -3
|
|
|
|
b.patch: +2
|
|
|
|
c.patch: unguarded
|
|
|
|
d.patch: +2
|
|
|
|
% hg qapplied
|
|
|
|
% hg qapplied -v
|
|
|
|
% hg qunapplied
|
|
|
|
c.patch
|
|
|
|
% hg qunapplied -v
|
|
|
|
0 G new.patch
|
|
|
|
1 G b.patch
|
|
|
|
2 U c.patch
|
|
|
|
3 G d.patch
|
|
|
|
number of unguarded, unapplied patches has changed from 1 to 2
|
|
|
|
% hg qapplied
|
|
|
|
% hg qapplied -v
|
|
|
|
% hg qunapplied
|
|
|
|
new.patch
|
|
|
|
c.patch
|
|
|
|
% hg qunapplied -v
|
|
|
|
0 U new.patch
|
|
|
|
1 G b.patch
|
|
|
|
2 U c.patch
|
|
|
|
3 G d.patch
|
|
|
|
applying new.patch
|
|
|
|
skipping b.patch - guarded by ['+2']
|
|
|
|
applying c.patch
|
|
|
|
skipping d.patch - guarded by ['+2']
|
2009-01-03 19:15:21 +03:00
|
|
|
now at: c.patch
|
2007-03-18 21:41:28 +03:00
|
|
|
% hg qapplied
|
|
|
|
new.patch
|
|
|
|
c.patch
|
|
|
|
% hg qapplied -v
|
|
|
|
0 A new.patch
|
|
|
|
1 G b.patch
|
|
|
|
2 A c.patch
|
|
|
|
% hg qunapplied
|
|
|
|
% hg qunapplied -v
|
|
|
|
3 G d.patch
|
|
|
|
number of unguarded, unapplied patches has changed from 0 to 1
|
|
|
|
number of guarded, applied patches has changed from 1 to 0
|
|
|
|
% hg qapplied
|
|
|
|
new.patch
|
|
|
|
c.patch
|
|
|
|
% hg qapplied -v
|
|
|
|
0 A new.patch
|
|
|
|
1 U b.patch
|
|
|
|
2 A c.patch
|
|
|
|
% hg qunapplied
|
|
|
|
d.patch
|
|
|
|
% hg qunapplied -v
|
|
|
|
3 U d.patch
|
|
|
|
% hg qapplied new.patch
|
|
|
|
new.patch
|
|
|
|
% hg qunapplied new.patch
|
|
|
|
b.patch
|
|
|
|
d.patch
|
|
|
|
% hg qapplied b.patch
|
|
|
|
new.patch
|
|
|
|
% hg qunapplied b.patch
|
|
|
|
d.patch
|
|
|
|
% hg qapplied c.patch
|
|
|
|
new.patch
|
|
|
|
c.patch
|
|
|
|
% hg qunapplied c.patch
|
|
|
|
d.patch
|
|
|
|
% hg qapplied d.patch
|
|
|
|
new.patch
|
|
|
|
c.patch
|
|
|
|
% hg qunapplied d.patch
|
2007-03-18 22:37:47 +03:00
|
|
|
% hg qseries -m: only b.patch should be shown
|
|
|
|
the guards file was not ignored in the past
|
|
|
|
b.patch
|