Mercurial > hgsubversion
diff hgsubversion/util.py @ 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 | d6b75cf2c27d |
children |
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.