Show More
@@ -1,50 +1,50 | |||
|
1 | 1 | $ "$TESTDIR/hghave" svn13 || exit 80 |
|
2 | 2 | |
|
3 | 3 | $ echo "[extensions]" >> $HGRCPATH |
|
4 | 4 | $ echo "mq=" >> $HGRCPATH |
|
5 | 5 | $ echo "[diff]" >> $HGRCPATH |
|
6 | 6 | $ echo "nodates=1" >> $HGRCPATH |
|
7 | 7 | |
|
8 | 8 | fn to create new repository, and cd into it |
|
9 | 9 | $ mkrepo() { |
|
10 | 10 | > hg init $1 |
|
11 | 11 | > cd $1 |
|
12 | 12 | > hg qinit |
|
13 | 13 | > } |
|
14 | 14 | |
|
15 | 15 | |
|
16 | 16 | handle svn subrepos safely |
|
17 | 17 | |
|
18 | 18 | $ svnadmin create svn-repo-2499 |
|
19 | 19 | $ curpath=`pwd | tr '\\\\' /` |
|
20 | 20 | $ expr "$svnpath" : "\/" > /dev/null |
|
21 | 21 | > if [ $? -ne 0 ]; then |
|
22 | 22 | > curpath="/$curpath" |
|
23 | 23 | > fi |
|
24 | 24 | $ svnurl="file://$curpath/svn-repo-2499/project" |
|
25 | 25 | $ mkdir -p svn-project-2499/trunk |
|
26 | 26 | $ svn import -m 'init project' svn-project-2499 "$svnurl" |
|
27 | Adding svn-project-2499/trunk | |
|
27 | Adding svn-project-2499/trunk (glob) | |
|
28 | 28 | |
|
29 | 29 | Committed revision 1. |
|
30 | 30 | |
|
31 | 31 | qnew on repo w/svn subrepo |
|
32 | 32 | $ mkrepo repo-2499-svn-subrepo |
|
33 | 33 | $ svn co "$svnurl"/trunk sub |
|
34 | 34 | Checked out revision 1. |
|
35 | 35 | $ echo 'sub = [svn]sub' >> .hgsub |
|
36 | 36 | $ hg add .hgsub |
|
37 | 37 | $ hg status -S -X '**/format' |
|
38 | 38 | A .hgsub |
|
39 | 39 | $ hg qnew -m0 0.diff |
|
40 | 40 | $ cd sub |
|
41 | 41 | $ echo a > a |
|
42 | 42 | $ svn add a |
|
43 | 43 | A a |
|
44 | 44 | $ svn st |
|
45 | 45 | A* a (glob) |
|
46 | 46 | $ cd .. |
|
47 | 47 | $ hg status -S # doesn't show status for svn subrepos (yet) |
|
48 | 48 | $ hg qnew -m1 1.diff |
|
49 | 49 | abort: uncommitted changes in subrepository sub |
|
50 | 50 | [255] |
General Comments 0
You need to be logged in to leave comments.
Login now