comparison tests/test-log.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 888dcab69ca3
comparison
equal deleted inserted replaced
24206:13c1e66f9653 24207:d90e3faf96a9
44 44
45 $ hg mv dir/b e 45 $ hg mv dir/b e
46 $ hg ci -me -d '5 0' 46 $ hg ci -me -d '5 0'
47 47
48 Make sure largefiles doesn't interfere with logging a regular file 48 Make sure largefiles doesn't interfere with logging a regular file
49 $ hg log a --config extensions.largefiles= 49 $ hg --debug log a -T '{rev}: {desc}\n' --config extensions.largefiles=
50 changeset: 0:9161b9aeaf16 50 updated patterns: ['.hglf/a', 'a']
51 user: test 51 0: a
52 date: Thu Jan 01 00:00:01 1970 +0000
53 summary: a
54
55 $ hg log a 52 $ hg log a
56 changeset: 0:9161b9aeaf16 53 changeset: 0:9161b9aeaf16
57 user: test 54 user: test
58 date: Thu Jan 01 00:00:01 1970 +0000 55 date: Thu Jan 01 00:00:01 1970 +0000
59 summary: a 56 summary: a
67 changeset: 0:9161b9aeaf16 64 changeset: 0:9161b9aeaf16
68 user: test 65 user: test
69 date: Thu Jan 01 00:00:01 1970 +0000 66 date: Thu Jan 01 00:00:01 1970 +0000
70 summary: a 67 summary: a
71 68
72 $ hg log glob:a* --config extensions.largefiles= 69 $ hg --debug log glob:a* -T '{rev}: {desc}\n' --config extensions.largefiles=
73 changeset: 3:2ca5ba701980 70 updated patterns: ['glob:.hglf/a*', 'glob:a*']
74 user: test 71 3: d
75 date: Thu Jan 01 00:00:04 1970 +0000 72 0: a
76 summary: d 73
77
78 changeset: 0:9161b9aeaf16
79 user: test
80 date: Thu Jan 01 00:00:01 1970 +0000
81 summary: a
82
83 log on directory 74 log on directory
84 75
85 $ hg log dir 76 $ hg log dir
86 changeset: 4:7e4639b4691b 77 changeset: 4:7e4639b4691b
87 tag: tip 78 tag: tip