diff hgext/transplant.py @ 12266:00658492e2aa

patch: break import cycle with cmdutil The patch module imported cmdutil but used it only in updatedir.
author Martin Geisler <mg@lazybytes.net>
date Mon, 13 Sep 2010 13:08:09 +0200
parents a4fbbe0fbc38
children 2912881c2a98
line wrap: on
line diff
--- a/hgext/transplant.py	Sun Sep 12 16:10:41 2010 +0900
+++ b/hgext/transplant.py	Mon Sep 13 13:08:09 2010 +0200
@@ -225,7 +225,7 @@
                                      % revlog.hex(node))
                         return None
                 finally:
-                    files = patch.updatedir(self.ui, repo, files)
+                    files = cmdutil.updatedir(self.ui, repo, files)
             except Exception, inst:
                 seriespath = os.path.join(self.path, 'series')
                 if os.path.exists(seriespath):