tests/test-fileset.t
changeset 24408 caa6b6c65dc3
parent 21947 b081decd9062
child 24424 f7a3ea7b9dc6
equal deleted inserted replaced
24406:1297480ed347 24408:caa6b6c65dc3
   107 #if symlink
   107 #if symlink
   108   $ ln -s b2 b2link
   108   $ ln -s b2 b2link
   109   $ fileset 'symlink() and unknown()'
   109   $ fileset 'symlink() and unknown()'
   110   b2link
   110   b2link
   111   $ hg add b2link
   111   $ hg add b2link
       
   112 #endif
       
   113 
       
   114 #if no-windows
       
   115   $ echo foo > con.xml
       
   116   $ echo bar > 'bar '
       
   117   $ echo baz > 'baz\'
       
   118   $ ls
       
   119   b1
       
   120   b2
       
   121   b2link
       
   122   bar 
       
   123   baz\
       
   124   bin
       
   125   c1
       
   126   c2
       
   127   c3
       
   128   con.xml
       
   129   $ fileset 'not portable()'
       
   130   bar 
       
   131   baz\
       
   132   con.xml
       
   133   $ hg --config ui.portablefilenames=ignore add con.xml 'bar ' 'baz\'
   112 #endif
   134 #endif
   113 
   135 
   114   >>> file('1k', 'wb').write(' '*1024)
   136   >>> file('1k', 'wb').write(' '*1024)
   115   >>> file('2k', 'wb').write(' '*2048)
   137   >>> file('2k', 'wb').write(' '*2048)
   116   $ hg add 1k 2k
   138   $ hg add 1k 2k
   218 #if symlink
   240 #if symlink
   219   $ fileset -r1 'symlink()'
   241   $ fileset -r1 'symlink()'
   220   b2link
   242   b2link
   221 #endif
   243 #endif
   222 
   244 
       
   245 #if no-windows
       
   246   $ fileset -r1 'not portable()'
       
   247   bar 
       
   248   baz\
       
   249   con.xml
       
   250 #endif
       
   251 
   223   $ fileset -r4 'subrepo("re:su.*")'
   252   $ fileset -r4 'subrepo("re:su.*")'
   224   sub
   253   sub
   225   $ fileset -r4 'subrepo("sub")'
   254   $ fileset -r4 'subrepo("sub")'
   226   sub
   255   sub
   227   $ fileset -r4 'b2 or c1'
   256   $ fileset -r4 'b2 or c1'
   240   .hgsub
   269   .hgsub
   241   .hgsubstate
   270   .hgsubstate
   242   a1
   271   a1
   243   b1
   272   b1
   244   b2
   273   b2
   245   c1
   274   bar 
       
   275   baz\
       
   276   c1
       
   277   con.xml
   246   mixed
   278   mixed
   247   $ fileset 'eol(mac)'
   279   $ fileset 'eol(mac)'
   248   mac
   280   mac