Mercurial > hg
comparison tests/test-glog.t @ 16159:ec33539b61f6
graphlog: paths arguments must be or'ed
author | Patrick Mezard <patrick@mezard.eu> |
---|---|
date | Thu, 23 Feb 2012 17:54:42 +0100 |
parents | e04cc21b01b2 |
children | 1bfc7ba8b404 |
comparison
equal
deleted
inserted
replaced
16158:e04cc21b01b2 | 16159:ec33539b61f6 |
---|---|
1484 | o 33 | 1484 | o 33 |
1485 | | | 1485 | | |
1486 $ hg log -G --follow a | 1486 $ hg log -G --follow a |
1487 abort: -G/--graph option is incompatible with --follow with file argument | 1487 abort: -G/--graph option is incompatible with --follow with file argument |
1488 [255] | 1488 [255] |
1489 | |
1490 | |
1491 Dedicated repo for --follow and paths filtering | |
1492 | |
1493 $ cd .. | |
1494 $ hg init follow | |
1495 $ cd follow | |
1496 $ echo a > a | |
1497 $ hg ci -Am "add a" | |
1498 adding a | |
1499 $ hg cp a b | |
1500 $ hg ci -m "copy a b" | |
1501 $ mkdir dir | |
1502 $ hg mv b dir | |
1503 $ hg ci -m "mv b dir/b" | |
1504 $ hg mv a b | |
1505 $ echo a > d | |
1506 $ hg add d | |
1507 $ hg ci -m "mv a b; add d" | |
1508 $ hg mv dir/b e | |
1509 $ hg ci -m "mv dir/b e" | |
1510 $ hg glog --template '({rev}) {desc|firstline}\n' | |
1511 @ (4) mv dir/b e | |
1512 | | |
1513 o (3) mv a b; add d | |
1514 | | |
1515 o (2) mv b dir/b | |
1516 | | |
1517 o (1) copy a b | |
1518 | | |
1519 o (0) add a | |
1520 | |
1521 | |
1522 $ testlog a c | |
1523 ('group', ('group', ('or', ('func', ('symbol', 'file'), ('string', 'a')), ('func', ('symbol', 'file'), ('string', 'c'))))) |