comparison tests/test-glog.t @ 16181:1fd352aa08fc

graphlog: evaluate FILE/-I/-X filesets on the working dir This subtlety is not documented yet but: - pats/--include/--exclude filesets are evaluated against the working directory - --rev filesets are reevaluated against every revisions
author Patrick Mezard <patrick@mezard.eu>
date Sun, 26 Feb 2012 17:10:51 +0100
parents 46a96cc830c2
children bd12ef347680
comparison
equal deleted inserted replaced
16180:46a96cc830c2 16181:1fd352aa08fc
1537 ('group', ('group', ('or', ('func', ('symbol', 'filelog'), ('string', 'a')), ('func', ('symbol', 'filelog'), ('string', 'b'))))) 1537 ('group', ('group', ('or', ('func', ('symbol', 'filelog'), ('string', 'a')), ('func', ('symbol', 'filelog'), ('string', 'b')))))
1538 1538
1539 Test falling back to slow path for non-existing files 1539 Test falling back to slow path for non-existing files
1540 1540
1541 $ testlog a c 1541 $ testlog a c
1542 ('group', ('group', ('func', ('symbol', '_matchfiles'), ('list', ('string', 'p:a'), ('string', 'p:c'))))) 1542 ('group', ('group', ('func', ('symbol', '_matchfiles'), ('list', ('list', ('string', 'r:'), ('string', 'p:a')), ('string', 'p:c')))))
1543 1543
1544 Test multiple --include/--exclude/paths 1544 Test multiple --include/--exclude/paths
1545 1545
1546 $ testlog --include a --include e --exclude b --exclude e a e 1546 $ testlog --include a --include e --exclude b --exclude e a e
1547 ('group', ('group', ('func', ('symbol', '_matchfiles'), ('list', ('list', ('list', ('list', ('list', ('string', 'p:a'), ('string', 'p:e')), ('string', 'i:a')), ('string', 'i:e')), ('string', 'x:b')), ('string', 'x:e'))))) 1547 ('group', ('group', ('func', ('symbol', '_matchfiles'), ('list', ('list', ('list', ('list', ('list', ('list', ('string', 'r:'), ('string', 'p:a')), ('string', 'p:e')), ('string', 'i:a')), ('string', 'i:e')), ('string', 'x:b')), ('string', 'x:e')))))
1548 1548
1549 Test glob expansion of pats 1549 Test glob expansion of pats
1550 1550
1551 $ expandglobs=`python -c "import mercurial.util; \ 1551 $ expandglobs=`python -c "import mercurial.util; \
1552 > print mercurial.util.expandglobs and 'true' or 'false'"` 1552 > print mercurial.util.expandglobs and 'true' or 'false'"`
1658 | 1658 |
1659 o 1 copy a b copies: b (a)g (f) 1659 o 1 copy a b copies: b (a)g (f)
1660 | 1660 |
1661 o 0 add a copies: 1661 o 0 add a copies:
1662 1662
1663 Test "set:..." and parent revision
1664
1665 $ hg up -q 4
1666 $ testlog --include "set:copied()"
1667 ('group', ('group', ('func', ('symbol', '_matchfiles'), ('list', ('string', 'r:'), ('string', 'i:set:copied()')))))
1668 $ testlog -r "sort(file('set:copied()'), -rev)"
1669 ('group', ('group', ('func', ('symbol', 'sort'), ('list', ('func', ('symbol', 'file'), ('string', 'set:copied()')), ('negate', ('symbol', 'rev'))))))