Mercurial > hg > mercurial-crew-with-dirclash
comparison tests/test-diffdir @ 3192:096f1c73cdc3
Add -D/--nodates options to hg diff/export that removes dates from diff headers
and replace uses of sed in the tests with --nodates.
author | Stephen Darnell <stephen@darnell.plus.com> |
---|---|
date | Tue, 26 Sep 2006 00:05:24 +0100 |
parents | 7544700fd931 |
children | 000d122071b5 |
comparison
equal
deleted
inserted
replaced
3191:a32f65549b9e | 3192:096f1c73cdc3 |
---|---|
5 hg add a | 5 hg add a |
6 hg ci -m "a" -d "1000000 0" | 6 hg ci -m "a" -d "1000000 0" |
7 | 7 |
8 echo 123 > b | 8 echo 123 > b |
9 hg add b | 9 hg add b |
10 hg diff | sed -e "s/\(+++ [a-zA-Z0-9_/.-]*\).*/\1/" \ | 10 hg diff --nodates |
11 -e "s/\(--- [a-zA-Z0-9_/.-]*\).*/\1/" | |
12 | 11 |
13 hg diff -r tip | sed -e "s/\(+++ [a-zA-Z0-9_/.-]*\).*/\1/" \ | 12 hg diff --nodates -r tip |
14 -e "s/\(--- [a-zA-Z0-9_/.-]*\).*/\1/" | |
15 | 13 |
16 echo foo > a | 14 echo foo > a |
17 hg diff | sed -e "s/\(+++ [a-zA-Z0-9_/.-]*\).*/\1/" \ | 15 hg diff --nodates |
18 -e "s/\(--- [a-zA-Z0-9_/.-]*\).*/\1/" |