changeset 4637:5a088ac232e6

Add test for debugrename
author Patrick Mezard <pmezard@gmail.com>
date Wed, 20 Jun 2007 00:09:32 +0200
parents bcfb3a30a112
children 3c7fc13c4bfa
files tests/test-debugrename tests/test-debugrename.out
diffstat 2 files changed, 22 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/test-debugrename	Wed Jun 20 00:09:32 2007 +0200
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+hg init
+echo a > a
+hg ci -Am t
+
+hg mv a b
+hg ci -Am t1
+hg debugrename b
+
+hg mv b a
+hg ci -Am t2
+hg debugrename a
+
+echo % test with --rev
+hg debugrename --rev 1 b
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/test-debugrename.out	Wed Jun 20 00:09:32 2007 +0200
@@ -0,0 +1,5 @@
+adding a
+b renamed from a:b789fdd96dc2f3bd229c1dd8eedf0fc60e2b68e3
+a renamed from b:9a263dd772e0159ddfa70fb8a448bb6c7ec8c69f
+% test with --rev
+b renamed from a:b789fdd96dc2f3bd229c1dd8eedf0fc60e2b68e3