##// END OF EJS Templates
test-subrepo-mq-svn.t: correct comment...
Kevin Bullock -
r13326:535a8912 default
parent child Browse files
Show More
@@ -1,52 +1,52 b''
1 $ "$TESTDIR/hghave" svn || exit 80
1 $ "$TESTDIR/hghave" svn || 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 w/dirty subrepo, 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
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
37 $ hg status -S
38 A .hgsub
38 A .hgsub
39 ? sub/.svn/entries
39 ? sub/.svn/entries
40 $ hg qnew -m0 0.diff
40 $ hg qnew -m0 0.diff
41 committing subrepository sub
41 committing subrepository sub
42 $ cd sub
42 $ cd sub
43 $ echo a > a
43 $ echo a > a
44 $ svn add a
44 $ svn add a
45 A a
45 A a
46 $ svn st
46 $ svn st
47 A a
47 A a
48 $ cd ..
48 $ cd ..
49 $ hg status -S # doesn't show status for svn subrepos (yet)
49 $ hg status -S # doesn't show status for svn subrepos (yet)
50 $ hg qnew -m1 1.diff
50 $ hg qnew -m1 1.diff
51 abort: uncommitted changes in subrepository sub
51 abort: uncommitted changes in subrepository sub
52 [255]
52 [255]
General Comments 0
You need to be logged in to leave comments. Login now