diff 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
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 []