# HG changeset patch # User Patrick Mezard # Date 1182290972 -7200 # Node ID 5a088ac232e6b2e42cef023affe83ad987e086c7 # Parent bcfb3a30a112f57890d39dcc3c0f895c49def622 Add test for debugrename diff -r bcfb3a30a112 -r 5a088ac232e6 tests/test-debugrename --- /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 + diff -r bcfb3a30a112 -r 5a088ac232e6 tests/test-debugrename.out --- /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