Mercurial > hg
comparison hgext/largefiles/overrides.py @ 22170:0e1b02f984c7 stable
largefiles: don't override matchandpats for always matchers (issue4334)
This makes hg log --follow --patch work, since in cmdutil._makelogrevset we
use the non-follow matcher for hg log --follow --patch with no file arguments.
author | Siddharth Agarwal <sid0@fb.com> |
---|---|
date | Wed, 13 Aug 2014 15:51:33 -0700 |
parents | 35cc5b07b3fc |
children | d3702a822241 |
comparison
equal
deleted
inserted
replaced
22169:35cc5b07b3fc | 22170:0e1b02f984c7 |
---|---|
264 For any listed files run log on the standin too. | 264 For any listed files run log on the standin too. |
265 matchfn tries both the given filename and with .hglf stripped. | 265 matchfn tries both the given filename and with .hglf stripped. |
266 """ | 266 """ |
267 matchandpats = oldmatchandpats(ctx, pats, opts, globbed, default) | 267 matchandpats = oldmatchandpats(ctx, pats, opts, globbed, default) |
268 m, p = copy.copy(matchandpats) | 268 m, p = copy.copy(matchandpats) |
269 | |
270 if m.always(): | |
271 # We want to match everything anyway, so there's no benefit trying | |
272 # to add standins. | |
273 return matchandpats | |
269 | 274 |
270 pats = set(p) | 275 pats = set(p) |
271 # TODO: handling of patterns in both cases below | 276 # TODO: handling of patterns in both cases below |
272 if m._cwd: | 277 if m._cwd: |
273 if os.path.isabs(m._cwd): | 278 if os.path.isabs(m._cwd): |