Mercurial > hgsubversion
comparison tests/fixtures/pushexternals.sh @ 175:2412800b1258
Support svn:externals changes via .hgsvnexternals updates
author | Patrick Mezard <pmezard@gmail.com> |
---|---|
date | Fri, 02 Jan 2009 15:54:05 -0600 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
174:f80132c5fea5 | 175:2412800b1258 |
---|---|
1 #!/bin/sh | |
2 # | |
3 # Generate pushexternals.svndump | |
4 # | |
5 | |
6 mkdir temp | |
7 cd temp | |
8 | |
9 mkdir project-orig | |
10 cd project-orig | |
11 mkdir trunk | |
12 mkdir externals | |
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/externals | |
21 mkdir project1 | |
22 echo a > project1/a | |
23 svn add project1 | |
24 mkdir project2 | |
25 echo a > project2/b | |
26 svn add project2 | |
27 svn ci -m "configure externals projects" | |
28 cd ../trunk | |
29 echo a > a | |
30 # dir is used to set svn:externals on an already existing directory | |
31 mkdir dir | |
32 svn add a dir | |
33 svn ci -m "add a and dir" | |
34 svn rm a | |
35 svn ci -m "remove a" | |
36 cd ../.. | |
37 | |
38 svnadmin dump testrepo > ../pushexternals.svndump |