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