mercurial/localrepo.py
changeset 37717 0664be4f0c1f
parent 37674 f83cb91b052e
child 37797 43221a57e22f
--- a/mercurial/localrepo.py	Sat Apr 14 09:23:48 2018 -0700
+++ b/mercurial/localrepo.py	Sat Apr 14 09:57:44 2018 -0700
@@ -413,7 +413,7 @@
         'bisect.state',
     }
 
-    def __init__(self, baseui, path, create=False):
+    def __init__(self, baseui, path, create=False, intents=None):
         self.requirements = set()
         self.filtername = None
         # wvfs: rooted at the repository root, used to access the working copy
@@ -2332,8 +2332,9 @@
     assert name.startswith('journal')
     return os.path.join(base, name.replace('journal', 'undo', 1))
 
-def instance(ui, path, create):
-    return localrepository(ui, util.urllocalpath(path), create)
+def instance(ui, path, create, intents=None):
+    return localrepository(ui, util.urllocalpath(path), create,
+                           intents=intents)
 
 def islocal(path):
     return True