Mercurial > hgsubversion
comparison hgsubversion/util.py @ 1585:d6b75cf2c27d
util: add _relativeuipath attribute to PrefixMatch
Recently matchers in core introduced a _relativeuipath attribute and started
using it. We need to add that to PrefixMatch too. This change is no-op on older
versions of mercurial.
author | Pulkit Goyal <pulkit@yandex-team.ru> |
---|---|
date | Wed, 24 Oct 2018 15:22:59 +0300 |
parents | ae572c9be4e6 |
children | 04a24a13960f |
comparison
equal
deleted
inserted
replaced
1584:2b342625a92a | 1585:d6b75cf2c27d |
---|---|
222 checkout = heads[0] | 222 checkout = heads[0] |
223 return svn_url, heads, checkout | 223 return svn_url, heads, checkout |
224 | 224 |
225 | 225 |
226 class PrefixMatch(object): | 226 class PrefixMatch(object): |
227 def __init__(self, prefix): | 227 def __init__(self, prefix, relativeuipath=True): |
228 self.p = prefix | 228 self.p = prefix |
229 self._relativeuipath = relativeuipath | |
229 | 230 |
230 def files(self): | 231 def files(self): |
231 return [] | 232 return [] |
232 | 233 |
233 def __call__(self, fn): | 234 def __call__(self, fn): |