Mercurial > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
5936:00dfc810dae4 | 5937:d8878742a924 |
---|---|
28 | 28 |
29 echo % import of plain diff should be ok with message | 29 echo % import of plain diff should be ok with message |
30 hg clone -r0 a b | 30 hg clone -r0 a b |
31 hg --cwd a diff -r0:1 > tip.patch | 31 hg --cwd a diff -r0:1 > tip.patch |
32 hg --cwd b import -mpatch ../tip.patch | 32 hg --cwd b import -mpatch ../tip.patch |
33 rm -r b | |
34 | |
35 echo % import of plain diff should be ok with --no-commit | |
36 hg clone -r0 a b | |
37 hg --cwd a diff -r0:1 > tip.patch | |
38 hg --cwd b import --no-commit ../tip.patch | |
39 hg --cwd b diff --nodates | |
33 rm -r b | 40 rm -r b |
34 | 41 |
35 echo % hg -R repo import | 42 echo % hg -R repo import |
36 # put the clone in a subdir - having a directory named "a" | 43 # put the clone in a subdir - having a directory named "a" |
37 # used to hide a bug. | 44 # used to hide a bug. |