Show More
@@ -58,7 +58,7 b' echo % update old branch' | |||||
58 | svn ci -m "change b" |
|
58 | svn ci -m "change b" | |
59 |
|
59 | |||
60 | echo % create a cross-branch revision |
|
60 | echo % create a cross-branch revision | |
61 |
svn move |
|
61 | svn move trunk/b branches/old/c | |
62 | "$TESTDIR/svn-safe-append.py" c branches/old/c |
|
62 | "$TESTDIR/svn-safe-append.py" c branches/old/c | |
63 | svn ci -m "move and update c" |
|
63 | svn ci -m "move and update c" | |
64 |
|
64 |
@@ -58,10 +58,19 b' svn up' | |||||
58 | svn rm subproject/trunk/d2 |
|
58 | svn rm subproject/trunk/d2 | |
59 | svn ci -m "changeb and rm d2" |
|
59 | svn ci -m "changeb and rm d2" | |
60 | svn mv $svnurl/subproject/trunk/d1 $svnurl/subproject/branches/d1 -m moved1again |
|
60 | svn mv $svnurl/subproject/trunk/d1 $svnurl/subproject/branches/d1 -m moved1again | |
61 | echo % copy a file from a past revision |
|
61 | ||
62 | svn copy -r 7 $svnurl/subproject/trunk/d2/d $svnurl/subproject/trunk -m copyfilefrompast |
|
62 | if svn help copy | grep 'SRC\[@REV\]' > /dev/null 2>&1; then | |
63 | echo % copy a directory from a past revision |
|
63 | # SVN >= 1.5 replaced the -r REV syntax with @REV | |
64 | svn copy -r 7 $svnurl/subproject/trunk/d2 $svnurl/subproject/trunk -m copydirfrompast |
|
64 | echo % copy a file from a past revision | |
|
65 | svn copy $svnurl/subproject/trunk/d2/d@7 $svnurl/subproject/trunk -m copyfilefrompast | |||
|
66 | echo % copy a directory from a past revision | |||
|
67 | svn copy $svnurl/subproject/trunk/d2@7 $svnurl/subproject/trunk -m copydirfrompast | |||
|
68 | else | |||
|
69 | echo % copy a file from a past revision | |||
|
70 | svn copy -r 7 $svnurl/subproject/trunk/d2/d $svnurl/subproject/trunk -m copyfilefrompast | |||
|
71 | echo % copy a directory from a past revision | |||
|
72 | svn copy -r 7 $svnurl/subproject/trunk/d2 $svnurl/subproject/trunk -m copydirfrompast | |||
|
73 | fi | |||
65 | cd .. |
|
74 | cd .. | |
66 |
|
75 | |||
67 | echo % convert trunk and branches |
|
76 | echo % convert trunk and branches |
@@ -31,7 +31,7 b' mkdir unrelated' | |||||
31 | cd .. |
|
31 | cd .. | |
32 |
|
32 | |||
33 | svnurl=file://$svnpath/svn-repo/projA |
|
33 | svnurl=file://$svnpath/svn-repo/projA | |
34 | svn import -m "init projA" projA $svnurl | fix_path |
|
34 | svn import -m "init projA" projA $svnurl | fix_path | sort | |
35 |
|
35 | |||
36 | echo % update svn repository |
|
36 | echo % update svn repository | |
37 | svn co $svnurl A | fix_path |
|
37 | svn co $svnurl A | fix_path |
@@ -1,9 +1,9 b'' | |||||
1 | % initial svn import |
|
1 | % initial svn import | |
|
2 | ||||
|
3 | Adding projA/branches | |||
|
4 | Adding projA/tags | |||
2 | Adding projA/trunk |
|
5 | Adding projA/trunk | |
3 | Adding projA/unrelated |
|
6 | Adding projA/unrelated | |
4 | Adding projA/branches |
|
|||
5 | Adding projA/tags |
|
|||
6 |
|
||||
7 | Committed revision 1. |
|
7 | Committed revision 1. | |
8 | % update svn repository |
|
8 | % update svn repository | |
9 | A A/trunk |
|
9 | A A/trunk |
General Comments 0
You need to be logged in to leave comments.
Login now