summaryrefslogtreecommitdiff
path: root/tests/test-commit-copy.t
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test-commit-copy.t')
-rw-r--r--tests/test-commit-copy.t16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/test-commit-copy.t b/tests/test-commit-copy.t
new file mode 100644
index 0000000..4ca44c2
--- /dev/null
+++ b/tests/test-commit-copy.t
@@ -0,0 +1,16 @@
+ $ hg init dir
+ $ cd dir
+ $ 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