Mercurial > public > mercurial-scm > hg-stable
diff tests/test-extdiff.t @ 43810:765a9c299c44
py3: make a pycompat.osdevnull, use it in extdiff
Differential Revision: https://phab.mercurial-scm.org/D7545
author | Kyle Lippincott <spectral@google.com> |
---|---|
date | Tue, 03 Dec 2019 17:17:57 -0800 |
parents | e0a3ee3fdb33 |
children | fb03cd716f50 |
line wrap: on
line diff
--- a/tests/test-extdiff.t Tue Dec 03 17:10:10 2019 -0800 +++ b/tests/test-extdiff.t Tue Dec 03 17:17:57 2019 -0800 @@ -515,3 +515,27 @@ $ LC_MESSAGES=ja_JP.UTF-8 hg --config hgext.extdiff= --config extdiff.cmd.td=$U help td \ > | grep "^ '" '\xa5\xa5' + + $ cd $TESTTMP + +Test that diffing a single file works, even if that file is new + + $ hg init testsinglefile + $ cd testsinglefile + $ echo a > a + $ hg add a + $ hg falabala + diffing * */a (glob) + [1] + $ hg ci -qm a + $ hg falabala -c . + diffing * */a (glob) + [1] + $ echo a >> a + $ hg falabala + diffing */a */a (glob) + [1] + $ hg ci -qm 2a + $ hg falabala -c . + diffing */a */a (glob) + [1]