# HG changeset patch
# User Pulkit Goyal <pulkit@yandex-team.ru>
# Date 1540383779 -10800
# Node ID d6b75cf2c27d3e261988feabd1360d79380ab8bb
# Parent  2b342625a92ab78cf0a89d04bdfbcbb5b9dc5183
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.

diff --git a/hgsubversion/util.py b/hgsubversion/util.py
--- 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 []