Mercurial > public > mercurial-scm > hg
diff tests/test-url-rev @ 5224:20817af258d8
pull -u: if "url#rev" was given, update to rev
author | Alexis S. L. Carvalho <alexis@cecm.usp.br> |
---|---|
date | Mon, 27 Aug 2007 01:44:35 -0300 |
parents | fe55e3d6dc0b |
children | 6c82beaaa11a |
line wrap: on
line diff
--- a/tests/test-url-rev Mon Aug 27 01:44:35 2007 -0300 +++ b/tests/test-url-rev Mon Aug 27 01:44:35 2007 -0300 @@ -51,3 +51,33 @@ hg heads echo +echo '% pull should not have updated' +hg parents -q +echo '% going back to the default branch' +hg up -C 0 +hg parents +echo '% no new revs, no update' +hg pull -qu +hg parents -q +echo '% rollback' +hg rollback +hg up -C 0 +hg parents -q +echo '% pull -u takes us back to branch foo' +hg pull -qu +hg parents + +echo '% rollback' +hg rollback +hg up -C 0 +echo '% parents' +hg parents -q +echo '% heads' +hg heads -q +echo '% pull -u -r otherrev url#rev updates to rev' +hg pull -qur default default +echo '% parents' +hg parents +echo '% heads' +hg heads +