tests/test-convert-filemap.t
changeset 21054 fffa9f17c3ef
parent 20117 aa9385f983fa
child 23835 aa4a1672583e
equal deleted inserted replaced
21053:d384ce982a51 21054:fffa9f17c3ef
   250   7711d36246cc83e61fb29cd6d4ef394c63f1ceaf 644   copied
   250   7711d36246cc83e61fb29cd6d4ef394c63f1ceaf 644   copied
   251   9a7b52012991e4873687192c3e17e61ba3e837a3 644   foo
   251   9a7b52012991e4873687192c3e17e61ba3e837a3 644   foo
   252   $ hg --cwd foo-copied.repo debugrename copied
   252   $ hg --cwd foo-copied.repo debugrename copied
   253   copied renamed from foo:2ed2a3912a0b24502043eae84ee4b279c18b90dd
   253   copied renamed from foo:2ed2a3912a0b24502043eae84ee4b279c18b90dd
   254 
   254 
       
   255 verify the top level 'include .' if there is no other includes:
       
   256 
       
   257   $ echo "exclude something" > default.fmap
       
   258   $ hg convert -q --filemap default.fmap -r1 source dummydest2
       
   259   $ hg -R dummydest2 log --template '{rev} {node|short} {desc|firstline}\n'
       
   260   1 61e22ca76c3b 1: add bar quux; copy foo to copied
       
   261   0 c085cf2ee7fe 0: add foo baz dir/
       
   262 
       
   263   $ echo "include somethingelse" >> default.fmap
       
   264   $ hg convert -q --filemap default.fmap -r1 source dummydest3
       
   265   $ hg -R dummydest3 log --template '{rev} {node|short} {desc|firstline}\n'
       
   266 
       
   267   $ echo "include ." >> default.fmap
       
   268   $ hg convert -q --filemap default.fmap -r1 source dummydest4
       
   269   $ hg -R dummydest4 log --template '{rev} {node|short} {desc|firstline}\n'
       
   270   1 61e22ca76c3b 1: add bar quux; copy foo to copied
       
   271   0 c085cf2ee7fe 0: add foo baz dir/
       
   272 
   255 ensure that the filemap contains duplicated slashes (issue3612)
   273 ensure that the filemap contains duplicated slashes (issue3612)
   256 
   274 
   257   $ cat > renames.fmap <<EOF
   275   $ cat > renames.fmap <<EOF
   258   > include dir
   276   > include dir
   259   > exclude dir/file2
   277   > exclude dir/file2