Commits

Anonymous committed 11b099d

temporary fixes for Mercurial 1.9

Comments (0)

Files changed (1)

tracext/hg/backend.py

     hg_import_error = e
     ui = object
 
+if hasattr(cmdutil, 'match'):
+    def match(ctx, *args, **kwargs):
+        return cmdutil.match(ctx._repo, *args, **kwargs)
+else:
+    from mercurial.scmutil import match
+
 
 ### Helpers
 
         for a in args:
             self.log.warn('(mercurial warning) %s', a)
 
-    def plain(self):
+    def plain(self, feature=None):
         return False # so that '[hg] hgrc' file can specify [ui] options
 
     def interactive(self): 
             return self._get_history_1_3(repo, pats, opts, limit)
 
     def _get_history_1_4(self, repo, pats, opts, limit):
-        matcher = cmdutil.match(repo, pats, opts)
+        matcher = match(repo[None], pats, opts)
         if self.isfile:
             fncache = {}
             def prep(ctx, fns):