summaryrefslogtreecommitdiff
path: root/tests/test-revlog-group-emptyiter.t
diff options
context:
space:
mode:
authorLorry <lorry@roadtrain.codethink.co.uk>2012-08-22 14:49:51 +0100
committerLorry <lorry@roadtrain.codethink.co.uk>2012-08-22 14:49:51 +0100
commita498da43c7fdb9f24b73680c02a4a3588cc62d9a (patch)
treedaf8119dae1749b5165b68033a1b23a7375ce9ce /tests/test-revlog-group-emptyiter.t
downloadmercurial-tarball-a498da43c7fdb9f24b73680c02a4a3588cc62d9a.tar.gz
Tarball conversion
Diffstat (limited to 'tests/test-revlog-group-emptyiter.t')
-rw-r--r--tests/test-revlog-group-emptyiter.t35
1 files changed, 35 insertions, 0 deletions
diff --git a/tests/test-revlog-group-emptyiter.t b/tests/test-revlog-group-emptyiter.t
new file mode 100644
index 0000000..905a6e0
--- /dev/null
+++ b/tests/test-revlog-group-emptyiter.t
@@ -0,0 +1,35 @@
+Issue1678: IndexError when pushing
+
+setting up base repo
+ $ hg init a
+ $ cd a
+ $ touch a
+ $ hg ci -Am a
+ adding a
+ $ cd ..
+
+cloning base repo
+ $ hg clone a b
+ updating to branch default
+ 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
+ $ cd b
+
+setting up cset to push
+ $ hg up null
+ 0 files updated, 0 files merged, 1 files removed, 0 files unresolved
+ $ touch a
+different msg so we get a clog new entry
+ $ hg ci -Am b
+ adding a
+ created new head
+
+pushing
+ $ hg push -f ../a
+ pushing to ../a
+ searching for changes
+ adding changesets
+ adding manifests
+ adding file changes
+ added 1 changesets with 0 changes to 0 files (+1 heads)
+
+ $ cd ..