Mercurial > hg > mercurial-source
comparison hgext/largefiles/overrides.py @ 24992:2553ef7355ab stable
largefiles: don't mangle filesets when fixing up the log matcher
The fileset-generated.t test previously failed with this:
+ hg: parse error: unknown identifier: .hglf/modified
+ (did you mean 'modified'?)
+ [255]
Filesets will find the standins on their own, without any help. While that's
useful for some things like modified(), clean(), etc., it is wrong for things
like size(). Proper fileset support for largefiles is not trivial, but this was
failing with just the extension enabled on a normal repo.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Sat, 18 Apr 2015 13:08:41 -0400 |
parents | e4e69cebeedd |
children | e47feee55bf7 |
comparison
equal
deleted
inserted
replaced
24991:e4e69cebeedd | 24992:2553ef7355ab |
---|---|
303 return matchandpats | 303 return matchandpats |
304 | 304 |
305 pats = set(p) | 305 pats = set(p) |
306 | 306 |
307 def fixpats(pat, tostandin=lfutil.standin): | 307 def fixpats(pat, tostandin=lfutil.standin): |
308 if pat.startswith('set:'): | |
309 return pat | |
310 | |
308 kindpat = match_._patsplit(pat, None) | 311 kindpat = match_._patsplit(pat, None) |
309 | 312 |
310 if kindpat[0] is not None: | 313 if kindpat[0] is not None: |
311 return kindpat[0] + ':' + tostandin(kindpat[1]) | 314 return kindpat[0] + ':' + tostandin(kindpat[1]) |
312 return tostandin(kindpat[1]) | 315 return tostandin(kindpat[1]) |