tests/test-diff-unified.t
branchstable
changeset 46528 df44bac9413d
parent 37369 22f19da5736e
child 46529 33350debb480
equal deleted inserted replaced
46522:6c8faeea6652 46528:df44bac9413d
   454     .
   454     .
   455     .
   455     .
   456     .
   456     .
   457 
   457 
   458   $ cd ..
   458   $ cd ..
       
   459 
       
   460 Make sure `hg diff --git` differentiate "file did not exists" and "file is empty"
       
   461 for git blob oids
       
   462 
       
   463   $ hg init bloboids
       
   464   $ cd bloboids
       
   465 
       
   466   $ touch a
       
   467   $ hg ci -Am "empty a"
       
   468   adding a
       
   469   $ hg diff -c 0 --git --config experimental.extendedheader.index=full | grep index
       
   470   index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 100644
       
   471 
       
   472 Make sure `hg diff --git` differentiate "file was empty" and "file is removed"
       
   473 for git blob oids
       
   474 
       
   475   $ rm a
       
   476   $ hg ci -Am "removed a"
       
   477   removing a
       
   478   $ hg diff -c 1 --git --config experimental.extendedheader.index=full | grep index
       
   479   index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 100644
       
   480 
       
   481   $ cd ..