Mercurial > public > mercurial-scm > hg-stable
diff tests/test-commit.t @ 16849:928ee57e3aae
tests: roll test-commit-copy.t into test-commit.t
author | Adrian Buehlmann <adrian@cadifra.com> |
---|---|
date | Mon, 04 Jun 2012 18:40:31 +0200 |
parents | a3ea092203a5 |
children | 5af80d29c441 |
line wrap: on
line diff
--- a/tests/test-commit.t Mon Jun 04 16:59:34 2012 +0200 +++ b/tests/test-commit.t Mon Jun 04 18:40:31 2012 +0200 @@ -283,3 +283,24 @@ HG: removed removed abort: empty commit message [255] + $ cd .. + + +commit copy + + $ hg init dir2 + $ cd dir2 + $ echo bleh > bar + $ hg add bar + $ hg ci -m 'add bar' + + $ hg cp bar foo + $ echo >> bar + $ hg ci -m 'cp bar foo; change bar' + + $ hg debugrename foo + foo renamed from bar:26d3ca0dfd18e44d796b564e38dd173c9668d3a9 + $ hg debugindex bar + rev offset length base linkrev nodeid p1 p2 + 0 0 6 0 0 26d3ca0dfd18 000000000000 000000000000 + 1 6 7 1 1 d267bddd54f7 26d3ca0dfd18 000000000000