comparison tests/test-mq-guards.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 e0f07847f8de
children aa2c35057f47
comparison
equal deleted inserted replaced
14463:81f559d1b9b2 14464:00256f689f9c
61 61
62 62
63 should fail 63 should fail
64 64
65 $ hg qpush a.patch 65 $ hg qpush a.patch
66 cannot push 'a.patch' - guarded by ['+a'] 66 cannot push 'a.patch' - guarded by '+a'
67 [1] 67 [1]
68 68
69 $ hg qguard a.patch 69 $ hg qguard a.patch
70 a.patch: +a 70 a.patch: +a
71 71
364 1 G b.patch 364 1 G b.patch
365 2 U c.patch 365 2 U c.patch
366 3 G d.patch 366 3 G d.patch
367 $ hg qpush -a 367 $ hg qpush -a
368 applying new.patch 368 applying new.patch
369 skipping b.patch - guarded by ['+2'] 369 skipping b.patch - guarded by '+2'
370 applying c.patch 370 applying c.patch
371 skipping d.patch - guarded by ['+2'] 371 skipping d.patch - guarded by '+2'
372 now at: c.patch 372 now at: c.patch
373 $ qappunappv 373 $ qappunappv
374 % hg qapplied 374 % hg qapplied
375 new.patch 375 new.patch
376 c.patch 376 c.patch