Show More
@@ -456,3 +456,26 b' be broken up' | |||||
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 .. |
General Comments 0
You need to be logged in to leave comments.
Login now