Show More
@@ -1559,7 +1559,31 b' issue3772: hg log -r :null showing revis' | |||
|
1559 | 1559 | user: |
|
1560 | 1560 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
1561 | 1561 | |
|
1562 | Check that adding an arbitrary name shows up in log automatically | |
|
1562 | 1563 | |
|
1564 | $ cat > ../names.py <<EOF | |
|
1565 | > """A small extension to test adding arbitrary names to a repo""" | |
|
1566 | > from mercurial.namespaces import namespace | |
|
1567 | > | |
|
1568 | > def reposetup(ui, repo): | |
|
1569 | > foo = {'foo': repo[0].node()} | |
|
1570 | > ns = namespace("bars", "bar", | |
|
1571 | > lambda r: foo.keys(), | |
|
1572 | > lambda r, name: foo.get(name), | |
|
1573 | > lambda r, node: [name for name, n | |
|
1574 | > in foo.iteritems() | |
|
1575 | > if n == node]) | |
|
1576 | > repo.names.addnamespace(ns) | |
|
1577 | > EOF | |
|
1578 | ||
|
1579 | $ hg --config extensions.names=../names.py log -r 0 | |
|
1580 | changeset: 0:65624cd9070a | |
|
1581 | tag: tip | |
|
1582 | bar: foo | |
|
1583 | user: test | |
|
1584 | date: Thu Jan 01 00:00:00 1970 +0000 | |
|
1585 | summary: a bunch of weird directories | |
|
1586 | ||
|
1563 | 1587 | $ cd .. |
|
1564 | 1588 | |
|
1565 | 1589 | hg log -f dir across branches |
General Comments 0
You need to be logged in to leave comments.
Login now