tests/test-mq-qimport.t
changeset 31556 448acdee9161
parent 29968 0342bf292f73
child 32940 75be14993fda
equal deleted inserted replaced
31555:7c7d3ad7ca5c 31556:448acdee9161
   245   adding this-name-is-better to series file
   245   adding this-name-is-better to series file
   246   $ hg qser
   246   $ hg qser
   247   this-name-is-better
   247   this-name-is-better
   248   url.diff
   248   url.diff
   249 
   249 
       
   250 import patch of bad filename
       
   251 
       
   252   $ touch '../ bad.diff'
       
   253   $ hg qimport '../ bad.diff'
       
   254   abort: patch name cannot begin or end with whitespace
       
   255   [255]
       
   256   $ touch '.hg/patches/ bad.diff'
       
   257   $ hg qimport -e ' bad.diff'
       
   258   abort: patch name cannot begin or end with whitespace
       
   259   [255]
       
   260 
   250 qimport with bad name, should abort before reading file
   261 qimport with bad name, should abort before reading file
   251 
   262 
   252   $ hg qimport non-existent-file --name .hg
   263   $ hg qimport non-existent-file --name .hg
   253   abort: patch name cannot begin with ".hg"
   264   abort: patch name cannot begin with ".hg"
       
   265   [255]
       
   266   $ hg qimport non-existent-file --name ' foo'
       
   267   abort: patch name cannot begin or end with whitespace
       
   268   [255]
       
   269   $ hg qimport non-existent-file --name 'foo '
       
   270   abort: patch name cannot begin or end with whitespace
   254   [255]
   271   [255]
   255 
   272 
   256 qimport http:// patch with leading slashes in url
   273 qimport http:// patch with leading slashes in url
   257 
   274 
   258 set up hgweb
   275 set up hgweb