Mercurial > hg
diff tests/test-convert-mtn @ 8099:3cdf4872941a
convert/mtn: handle new files in moved directories (issue1619)
Reported and investigated by Paul Aurich <paul@darkrain42.org>
author | Patrick Mezard <pmezard@gmail.com> |
---|---|
date | Tue, 21 Apr 2009 14:17:29 +0200 |
parents | 087cc65bebff |
children | 933b874e402f |
line wrap: on
line diff
--- a/tests/test-convert-mtn Sat Mar 28 12:24:53 2009 -0400 +++ b/tests/test-convert-mtn Tue Apr 21 14:17:29 2009 +0200 @@ -33,9 +33,10 @@ echo a > a mkdir dir echo b > dir/b +echo d > dir/d python -c 'file("bin", "wb").write("a\\x00b")' echo c > c -mtn add a dir/b c bin +mtn add a dir/b dir/d c bin mtn ci -m initialize echo % update monotone working directory mtn mv a dir/a @@ -66,6 +67,9 @@ mtn ci -m movedir1 echo '% test subdirectory move' mtn mv dir dir2 +echo newfile > dir2/newfile +mtn drop dir2/d +mtn add dir2/newfile mtn ci -m movedir # Test directory removal with empty directory mkdir dir2/dir @@ -102,5 +106,7 @@ test -d dir1/subdir2 || echo 'new dir1/subdir2 does not exist!' test -d dir1/subdir1 && echo 'renamed dir1/subdir1 is still there!' hg log -v -C -r 4 | grep copies +echo % check file remove with directory move +hg manifest -r 5 exit 0