Commits

Steve Borho committed ba4c20d

chunks: use updatedir directly from cmdutil

updatedir() moved between hg-1.6 and hg-1.7. The stable branch requires hg-1.8
at a minimum.

Comments (0)

Files changed (1)

tortoisehg/hgqt/chunks.py

 import cStringIO
 import os
 
-from mercurial import hg, util, patch, commands
+from mercurial import hg, util, patch, commands, cmdutil
 from mercurial import match as matchmod, ui as uimod
 from hgext import record
 
                     break
         if updatestate and ok:
             # Apply operations specified in git diff headers
-            hglib.updatedir(repo.ui, repo, pfiles)
+            cmdutil.updatedir(repo.ui, repo, pfiles)
         return ok
 
     def editCurrentFile(self):