Mercurial > public > mercurial-scm > hg
diff tests/test-largefiles-misc.t @ 24207:d90e3faf96a9
largefiles: don't prefix standin patterns with '.hglf' when logging
When logging '.hglf/foo', the pattern list was being transformed from
['.hglf/foo'] into ['.hglf/foo', '.hglf/.hglf/foo']. Aside from the
pathological case of somebody getting a directory named '.hglf' created inside
the standing directory, the old code shouldn't have had any bad effects.
(amended by mpm to sort patterns for test stability and not upset check-code)
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Sun, 01 Mar 2015 14:21:54 -0500 |
parents | 13c1e66f9653 |
children | e6b0de02a02e |
line wrap: on
line diff
--- a/tests/test-largefiles-misc.t Sat Feb 28 23:42:38 2015 -0500 +++ b/tests/test-largefiles-misc.t Sun Mar 01 14:21:54 2015 -0500 @@ -466,14 +466,22 @@ date: Thu Jan 01 00:00:00 1970 +0000 summary: anotherlarge - $ hg log -G glob:another* - @ changeset: 1:9627a577c5e9 - | tag: tip - | user: test - | date: Thu Jan 01 00:00:00 1970 +0000 - | summary: anotherlarge + $ hg --debug log -T '{rev}: {desc}\n' -G glob:another* + updated patterns: ['glob:../.hglf/sub/another*', 'glob:another*'] + @ 1: anotherlarge | +#if no-msys + $ hg --debug log -T '{rev}: {desc}\n' 'glob:../.hglf/sub/another*' # no-msys + updated patterns: ['glob:../.hglf/sub/another*'] + 1: anotherlarge + + $ hg --debug log -G -T '{rev}: {desc}\n' 'glob:../.hglf/sub/another*' # no-msys + updated patterns: ['glob:../.hglf/sub/another*'] + @ 1: anotherlarge + | +#endif + $ echo more >> anotherlarge $ hg st . M anotherlarge