Mercurial > hgsubversion
comparison tests/fixtures/movetotrunk.sh @ 961:b729909d3793
tests: add tests where files are moved from root to trunk
It triggers a special case of missing path with a different root layout.
author | Patrick Mezard <patrick@mezard.eu> |
---|---|
date | Sat, 20 Oct 2012 22:24:32 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
960:502613f6b583 | 961:b729909d3793 |
---|---|
1 #!/bin/sh | |
2 # | |
3 # Generate movetotrunk.svndump | |
4 # | |
5 | |
6 mkdir temp | |
7 cd temp | |
8 | |
9 mkdir project-orig | |
10 cd project-orig | |
11 cd .. | |
12 | |
13 svnadmin create testrepo | |
14 svnurl=file://`pwd`/testrepo | |
15 svn mkdir --parents $svnurl/sub1/sub2 -m subpaths | |
16 svn import project-orig $svnurl/sub1/sub2 -m "init project" | |
17 | |
18 svn co $svnurl/sub1/sub2 project | |
19 cd project | |
20 echo a > a | |
21 svn add a | |
22 mkdir dir | |
23 echo b > dir/b | |
24 svn add dir | |
25 svn ci -m adda | |
26 svn up | |
27 mkdir trunk | |
28 svn add trunk | |
29 svn mv a trunk/a | |
30 svn mv dir trunk/dir | |
31 svn ci -m 'move to trunk' | |
32 cd .. | |
33 | |
34 svnadmin dump testrepo > ../movetotrunk.svndump |