Commits

Anonymous committed ed11185

hggtk/commit: remove dependency on Hg 0.9.5

Comments (0)

Files changed (1)

 
 from mercurial.i18n import _
 from mercurial.node import *
-from mercurial import cmdutil, util, ui, hg, commands, patch, dispatch
+from mercurial import cmdutil, util, ui, hg, commands, patch
 from hgext import extdiff
 from shlib import shell_notify
 from gdialog import *
 
     ct = repo.ui.config('tortoisehg', 'commit', 'internal')
     if ct != 'internal':
+        from hglib import thgdispatch
         args = ['--repository', root, ct]
-        ret = dispatch._dispatch(repo.ui, args)
+        ret = thgdispatch(repo.ui, args=args)
         return None
 
     cmdoptions = {