Mercurial > hg-stable
changeset 8635:aaaf4af1c173
revlog: add test for 7659eecd9da2 (issue1678)
author | Peter Arrenbrecht <peter.arrenbrecht@gmail.com> |
---|---|
date | Wed, 27 May 2009 14:11:41 +0200 |
parents | 7659eecd9da2 |
children | 7aa1526d4fc5 |
files | tests/test-revlog-group-emptyiter tests/test-revlog-group-emptyiter.out |
diffstat | 2 files changed, 39 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/test-revlog-group-emptyiter Wed May 27 14:11:41 2009 +0200 @@ -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 +
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/test-revlog-group-emptyiter.out Wed May 27 14:11:41 2009 +0200 @@ -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)