Mercurial > hgsubversion
comparison tests/fixtures/delentries.sh @ 144:19aabf67c792
test_fetch_command: test file and directory deletions
author | Patrick Mezard <pmezard@gmail.com> |
---|---|
date | Mon, 15 Dec 2008 21:39:35 -0600 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
143:edd9f4e5154a | 144:19aabf67c792 |
---|---|
1 #!/bin/sh | |
2 # | |
3 # Generate delentries.svndump | |
4 # | |
5 | |
6 mkdir temp | |
7 cd temp | |
8 | |
9 mkdir project-orig | |
10 cd project-orig | |
11 mkdir trunk | |
12 cd .. | |
13 | |
14 svnadmin create testrepo | |
15 svnurl=file://`pwd`/testrepo | |
16 svn import project-orig $svnurl -m "init project" | |
17 | |
18 svn co $svnurl project | |
19 cd project/trunk | |
20 # Regular file deletion | |
21 echo a > a | |
22 # Another file starting like the deleted file | |
23 echo aa > aa | |
24 mkdir d1 | |
25 mkdir d1/d2 | |
26 mkdir d1/d2/d3 | |
27 echo c > d1/c | |
28 # Test directory deletion | |
29 echo d > d1/d2/c | |
30 # Test subdirectory deletion | |
31 echo e > d1/d2/d3/e | |
32 echo f > d1/d2/d3/f | |
33 # This file starts as the deleted directory, can be confusing | |
34 echo d2prefix > d1/d2prefix | |
35 svn add a aa d1 | |
36 svn ci -m "add entries" | |
37 svn rm a d1/d2 | |
38 svn ci -m "remove entries" | |
39 cd ../.. | |
40 | |
41 svnadmin dump testrepo > ../delentries.svndump |