Mercurial > hg
comparison tests/test-mq.t @ 14464:00256f689f9c
mq: print "'foo' 'bar'", not "['foo', 'bar']" when showing guards
The internal list representation of guards was leaking into the
output. The guards were always printed using repr(guard) and that
style was kept.
When "hg qguard -l" prints several guards for a patch, it does so by
joining the names with " " and that style was used for the error
messages too.
author | Martin Geisler <mg@aragost.com> |
---|---|
date | Tue, 31 May 2011 08:47:16 +0200 |
parents | e8debe1eb255 |
children | e9ed3506f066 |
comparison
equal
deleted
inserted
replaced
14463:81f559d1b9b2 | 14464:00256f689f9c |
---|---|
458 popping test.patch | 458 popping test.patch |
459 patch queue now empty | 459 patch queue now empty |
460 $ hg qguard test1b.patch -- -negguard | 460 $ hg qguard test1b.patch -- -negguard |
461 $ hg qguard test2.patch -- +posguard | 461 $ hg qguard test2.patch -- +posguard |
462 $ hg qpush --move test2.patch # can't move guarded patch | 462 $ hg qpush --move test2.patch # can't move guarded patch |
463 cannot push 'test2.patch' - guarded by ['+posguard'] | 463 cannot push 'test2.patch' - guarded by '+posguard' |
464 [1] | 464 [1] |
465 $ hg qselect posguard | 465 $ hg qselect posguard |
466 number of unguarded, unapplied patches has changed from 2 to 3 | 466 number of unguarded, unapplied patches has changed from 2 to 3 |
467 $ hg qpush --move test2.patch # move to front | 467 $ hg qpush --move test2.patch # move to front |
468 applying test2.patch | 468 applying test2.patch |