changeset 1596:04a24a13960f

util: add visitdir() and visitchildrenset() to PrefixMatch This is done to be compatible with treemanifest repositories.
author Pulkit Goyal <pulkit@yandex-team.ru>
date Tue, 20 Nov 2018 15:37:06 +0300
parents 74c5fd9c3e76
children b06be5815692
files hgsubversion/util.py
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/hgsubversion/util.py
+++ b/hgsubversion/util.py
@@ -249,6 +249,12 @@ class PrefixMatch(object):
     def prefix(self):
         return False
 
+    def visitdir(self, dir):
+        return True
+
+    def visitchildrenset(self, dir):
+        return 'this'
+
 def outgoing_revisions(repo, reverse_map, sourcerev):
     """Given a repo and an hg_editor, determines outgoing revisions for the
     current working copy state.