diff --git a/tests/test-revlog-group-emptyiter b/tests/test-revlog-group-emptyiter new file mode 100755 --- /dev/null +++ b/tests/test-revlog-group-emptyiter @@ -0,0 +1,23 @@ +#! /bin/sh + +# issue 1678 + +echo "# -- setting up base repo" +hg init a +cd a +touch a +hg ci -Am a +cd .. + +echo "# -- cloning base repo" +hg clone a b +cd b + +echo "# -- setting up cset to push" +hg up null +touch a +hg ci -Am b # different msg so we get a clog new entry + +echo "# -- pushing" +hg push -f ../a + diff --git a/tests/test-revlog-group-emptyiter.out b/tests/test-revlog-group-emptyiter.out new file mode 100644 --- /dev/null +++ b/tests/test-revlog-group-emptyiter.out @@ -0,0 +1,16 @@ +# -- setting up base repo +adding a +# -- cloning base repo +updating working directory +1 files updated, 0 files merged, 0 files removed, 0 files unresolved +# -- setting up cset to push +0 files updated, 0 files merged, 1 files removed, 0 files unresolved +adding a +created new head +# -- pushing +pushing to ../a +searching for changes +adding changesets +adding manifests +adding file changes +added 1 changesets with 0 changes to 0 files (+1 heads)