diff tests/test-import @ 5937:d8878742a924

Test case for hg import --no-commit
author Thomas Arendsen Hein <thomas@intevation.de>
date Fri, 25 Jan 2008 16:18:49 +0100
parents deb0d3518674
children e7f1be4bf40a
line wrap: on
line diff
--- a/tests/test-import	Fri Jan 25 13:48:35 2008 +0100
+++ b/tests/test-import	Fri Jan 25 16:18:49 2008 +0100
@@ -32,6 +32,13 @@
 hg --cwd b import -mpatch ../tip.patch
 rm -r b
 
+echo % import of plain diff should be ok with --no-commit
+hg clone -r0 a b
+hg --cwd a diff -r0:1 > tip.patch
+hg --cwd b import --no-commit ../tip.patch
+hg --cwd b diff --nodates
+rm -r b
+
 echo % hg -R repo import
 # put the clone in a subdir - having a directory named "a"
 # used to hide a bug.