Mercurial > hgsubversion
comparison tests/fixtures/renames.sh @ 67:e319c9168910
hg_delta_editor: register svn file copies
author | Patrick Mezard <pmezard@gmail.com> |
---|---|
date | Wed, 05 Nov 2008 13:37:07 +0100 |
parents | |
children | e0c86ebe05e3 |
comparison
equal
deleted
inserted
replaced
66:a31968146f3c | 67:e319c9168910 |
---|---|
1 #!/bin/sh | |
2 # | |
3 # Generate renames.svndump | |
4 # | |
5 | |
6 mkdir temp | |
7 cd temp | |
8 | |
9 mkdir project-orig | |
10 cd project-orig | |
11 mkdir trunk | |
12 mkdir branches | |
13 cd .. | |
14 | |
15 svnadmin create testrepo | |
16 svnurl=file://`pwd`/testrepo | |
17 svn import project-orig $svnurl -m "init project" | |
18 | |
19 svn co $svnurl project | |
20 cd project/trunk | |
21 echo a > a | |
22 echo b > b | |
23 mkdir -p da/db | |
24 echo c > da/daf | |
25 echo d > da/db/dbf | |
26 svn add a b da | |
27 svn ci -m "add a and b" | |
28 cd ../branches | |
29 svn cp ../trunk branch1 | |
30 svn ci -m "create branch1" | |
31 cd branch1 | |
32 echo c > c | |
33 svn add c | |
34 svn ci -m "add c" | |
35 cd ../../trunk | |
36 # Regular copy and rename | |
37 svn cp a a1 | |
38 svn mv a a2 | |
39 # Copy and update of source and dest | |
40 svn cp b b1 | |
41 echo b >> b | |
42 echo c >> b1 | |
43 # Directory copy and renaming | |
44 svn cp da da1 | |
45 svn mv da da2 | |
46 # Test one copy operation in branch | |
47 cd ../branches/branch1 | |
48 svn cp c c1 | |
49 echo c >> c1 | |
50 cd ../.. | |
51 svn ci -m "rename and copy a, b and da" | |
52 cd trunk | |
53 # Copy across branch | |
54 svn cp ../branches/branch1/c c | |
55 svn ci -m "copy b from branch1" | |
56 cd ../.. | |
57 | |
58 svnadmin dump testrepo > ../renames.svndump |