changeset 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 2b342625a92a
children 4889843a704e
files hgsubversion/util.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hgsubversion/util.py
+++ b/hgsubversion/util.py
@@ -224,8 +224,9 @@ def parseurl(url, heads=[]):
 
 
 class PrefixMatch(object):
-    def __init__(self, prefix):
+    def __init__(self, prefix, relativeuipath=True):
         self.p = prefix
+        self._relativeuipath = relativeuipath
 
     def files(self):
         return []