--- a/tests/test-bundle Mon Jan 15 17:56:20 2007 +0100
+++ b/tests/test-bundle Mon Jan 15 16:13:50 2007 -0200
@@ -59,3 +59,22 @@
hg -R bundle://../full.hg outgoing ../partial2
hg -R bundle://../does-not-exist.hg outgoing ../partial2
cd ..
+
+# test for 540d1059c802
+hg init orig
+cd orig
+echo foo > foo
+hg add foo
+hg ci -m 'add foo' -d '0 0'
+
+hg clone . ../copy
+hg tag -d '0 0' foo
+
+cd ../copy
+echo >> foo
+hg ci -m 'change foo' -d '0 0'
+hg bundle ../bundle.hg ../orig
+
+cd ../orig
+hg incoming ../bundle.hg
+cd ..
--- a/tests/test-bundle.out Mon Jan 15 17:56:20 2007 +0100
+++ b/tests/test-bundle.out Mon Jan 15 16:13:50 2007 -0200
@@ -209,3 +209,13 @@
summary: 0.3m
abort: No such file or directory: ../does-not-exist.hg
+1 files updated, 0 files merged, 0 files removed, 0 files unresolved
+searching for changes
+searching for changes
+changeset: 2:ed1b79f46b9a
+tag: tip
+parent: 0:bbd179dfa0a7
+user: test
+date: Thu Jan 01 00:00:00 1970 +0000
+summary: change foo
+