Commits

Steve Losh committed 5431104

guts: fix for 1.9

fixes #73

  • Participants
  • Parent commits bf2c746

Comments (0)

Files changed (2)

File review/api.py

 import base64, datetime, operator, os
 import messages
 from rutil import fromlocal
-from mercurial import cmdutil, error, hg, patch, util
+from mercurial import cmdutil, error, hg, patch, scmutil, util
 from mercurial.node import hex
 from mercurial import ui as _ui
 from mercurial import demandimport
             except error.RepoError:
                 if clone_message:
                     ui.write(messages.INIT_CLONE_MESSAGE % self.rpath)
-                hg.clone(hg.remoteui(self.ui, {}), self.rpath, self.lpath)
+                hg.clone(hg.remoteui(self.ui, {}), {}, self.rpath, self.lpath)
             else:
                 raise PreexistingDatastore(True)
         elif os.path.exists(os.path.join(self.target.root, '.hgreview')):
 
         diffs = {}
         for filename in filenames:
-            m = cmdutil.matchfiles(self.target, [filename])
+            m = scmutil.matchfiles(self.target, [filename])
             diff_opts = patch.diffopts(self.ui, opts)
             diff_opts.git = True
             d = patch.diff(self.target, node1, node2, match=m, opts=diff_opts)

File review/tests/util.py

     return hg.repository(_ui, sandbox_clone_path)
 
 def clone_sandbox_repo():
-    hg.clone(hg.remoteui(_ui, {}), sandbox_repo_path, sandbox_clone_path)
+    hg.clone(hg.remoteui(_ui, {}), {}, sandbox_repo_path, sandbox_clone_path)
 
 def get_datastore_repo(path=api.DEFAULT_DATASTORE_DIRNAME):
     return hg.repository(_ui, path)