Mercurial > hg-stable
diff tests/test-rebase-pull @ 7786:92455c1d6f83
rebase: pull --rebase updates if there is nothing to rebase
author | Stefano Tortarolo <stefano.tortarolo@gmail.com> |
---|---|
date | Sun, 18 Jan 2009 19:59:51 +0100 |
parents | 93609576244e |
children | 8766fee6f225 aee8455ee8ec |
line wrap: on
line diff
--- a/tests/test-rebase-pull Tue Feb 10 22:47:38 2009 +0100 +++ b/tests/test-rebase-pull Sun Jan 18 19:59:51 2009 +0100 @@ -25,6 +25,9 @@ cd .. hg clone a b +# This is needed to test pull --rebase +hg clone a c + cd b addcommit "L1" 2 @@ -44,7 +47,15 @@ hg pull --rebase 2>&1 | sed 's/\(pulling from \).*/\1/' echo -echo "% Invoke pull --rebase with --update" -hg pull --rebase --update +echo "% Invoke pull --rebase and nothing to rebase" +cd ../c +hg pull --rebase 2>&1 | sed 's/\(pulling from \).*/\1/' +hg glog --template '{rev}\n' -l 1 + +echo +echo "% pull --rebase doesn't update if nothing has been pulled" +hg up 1 +hg pull --rebase 2>&1 | sed 's/\(pulling from \).*/\1/' +hg glog --template '{rev}\n' -l 1 exit 0