tests/test-convert-svn-source.t
changeset 19122 83973dc1bfe9
parent 17974 337d728e644f
child 20117 aa9385f983fa
equal deleted inserted replaced
19121:478a04605ce1 19122:83973dc1bfe9
    14 #if windows
    14 #if windows
    15   $ SVNREPOURL=file:///`python -c "import urllib, sys; sys.stdout.write(urllib.quote(sys.argv[1]))" "$SVNREPOPATH"`
    15   $ SVNREPOURL=file:///`python -c "import urllib, sys; sys.stdout.write(urllib.quote(sys.argv[1]))" "$SVNREPOPATH"`
    16 #else
    16 #else
    17   $ SVNREPOURL=file://`python -c "import urllib, sys; sys.stdout.write(urllib.quote(sys.argv[1]))" "$SVNREPOPATH"`
    17   $ SVNREPOURL=file://`python -c "import urllib, sys; sys.stdout.write(urllib.quote(sys.argv[1]))" "$SVNREPOPATH"`
    18 #endif
    18 #endif
       
    19   $ INVALIDREVISIONID=svn:x2147622-4a9f-4db4-a8d3-13562ff547b2/proj%20B/mytrunk@1
       
    20   $ VALIDREVISIONID=svn:a2147622-4a9f-4db4-a8d3-13562ff547b2/proj%20B/mytrunk/mytrunk@1
    19 
    21 
    20 Now test that it works with trunk/tags layout, but no branches yet.
    22 Now test that it works with trunk/tags layout, but no branches yet.
    21 
    23 
    22 Initial svn import
    24 Initial svn import
    23 
    25 
   166   $ hg glog -R fmap --template '{rev} {desc|firstline} files: {files}\n'
   168   $ hg glog -R fmap --template '{rev} {desc|firstline} files: {files}\n'
   167   o  1 work in progress files: letter2.txt
   169   o  1 work in progress files: letter2.txt
   168   |
   170   |
   169   o  0 second letter files: letter2.txt
   171   o  0 second letter files: letter2.txt
   170   
   172   
       
   173 test invalid splicemap1
       
   174 
       
   175   $ cat > splicemap <<EOF
       
   176   > $INVALIDREVISIONID $VALIDREVISIONID
       
   177   > EOF
       
   178   $ hg convert --splicemap splicemap "$SVNREPOURL/proj%20B/mytrunk" smap
       
   179   initializing destination smap repository
       
   180   abort: splicemap entry svn:x2147622-4a9f-4db4-a8d3-13562ff547b2/proj%20B/mytrunk@1 is not a valid revision identifier
       
   181   [255]
   171 
   182 
   172 Test stop revision
   183 Test stop revision
   173   $ hg convert --rev 1 "$SVNREPOURL/proj%20B/mytrunk" stoprev
   184   $ hg convert --rev 1 "$SVNREPOURL/proj%20B/mytrunk" stoprev
   174   initializing destination stoprev repository
   185   initializing destination stoprev repository
   175   scanning source...
   186   scanning source...