| 1 |
#require svn13 |
| 2 |
|
| 3 |
$ cat <<EOF >> $HGRCPATH |
| 4 |
> [extensions] |
| 5 |
> mq = |
| 6 |
> [diff] |
| 7 |
> nodates = 1 |
| 8 |
> [subrepos] |
| 9 |
> allowed = true |
| 10 |
> svn:allowed = true |
| 11 |
> EOF |
| 12 |
|
| 13 |
fn to create new repository, and cd into it |
| 14 |
$ mkrepo() { |
| 15 |
> hg init $1 |
| 16 |
> cd $1 |
| 17 |
> hg qinit |
| 18 |
> } |
| 19 |
|
| 20 |
|
| 21 |
handle svn subrepos safely |
| 22 |
|
| 23 |
$ svnadmin create svn-repo-2499 |
| 24 |
|
| 25 |
$ SVNREPOPATH=`pwd`/svn-repo-2499/project |
| 26 |
$ SVNREPOURL="`"$PYTHON" $TESTDIR/svnurlof.py \"$SVNREPOPATH\"`" |
| 27 |
|
| 28 |
$ mkdir -p svn-project-2499/trunk |
| 29 |
$ svn import -qm 'init project' svn-project-2499 "$SVNREPOURL" |
| 30 |
|
| 31 |
qnew on repo w/svn subrepo |
| 32 |
$ mkrepo repo-2499-svn-subrepo |
| 33 |
$ svn co "$SVNREPOURL"/trunk sub |
| 34 |
Checked out revision 1. |
| 35 |
$ echo 'sub = [svn]sub' >> .hgsub |
| 36 |
$ hg add .hgsub |
| 37 |
$ hg status -S -X '**/format' |
| 38 |
A .hgsub |
| 39 |
$ hg qnew -m0 0.diff |
| 40 |
$ cd sub |
| 41 |
$ echo foo > a |
| 42 |
$ svn add a |
| 43 |
A a |
| 44 |
$ svn st |
| 45 |
A* a (glob) |
| 46 |
$ cd .. |
| 47 |
$ hg status -S # doesn't show status for svn subrepos (yet) |
| 48 |
$ hg qnew -m1 1.diff |
| 49 |
abort: uncommitted changes in subrepository "sub" |
| 50 |
[255] |
| 51 |
|
| 52 |
$ cd .. |