Comments
Patch
@@ -1557,11 +1557,38 @@ issue3772: hg log -r :null showing revis
$ hg log -r null:null
changeset: -1:000000000000
user:
date: Thu Jan 01 00:00:00 1970 +0000
+Check that adding an arbitrary name shows up in log automatically
+ $ cat > ../names.py <<EOF
+ > """A small extension to test adding arbitrary names to a repo"""
+ > foo = {
+ > 'foo': 'ebL\xd9\x07\n\x03_\xa7\x19\x1aT\xf2\xb8\xaf9\xf1k\x0c\x08'
+ > }
+ >
+ > from mercurial.namespaces import namespace
+ >
+ > def reposetup(ui, repo):
+ > ns = namespace("bars", "bar", "bar",
+ > lambda r: foo.keys(),
+ > lambda r, name: foo.get(name),
+ > lambda r, node: [name for name, n
+ > in foo.iteritems()
+ > if n == node])
+ > repo.names.addnamespace(ns)
+ > EOF
+
+ $ hg --config extensions.names=../names.py log -r 0
+ changeset: 0:65624cd9070a
+ tag: tip
+ bar: foo
+ user: test
+ date: Thu Jan 01 00:00:00 1970 +0000
+ summary: a bunch of weird directories
+
$ cd ..
hg log -f dir across branches
$ hg init acrossbranches