1. Friedrich Kastner-Masilko
  2. timestamp


Ahmed Chaudhary  committed fe1b909

change util to scmutil for Mercurial 1.9

  • Participants
  • Parent commits 32c9e32
  • Branches default

Comments (0)

Files changed (1)

File makewritable.py

View file
  • Ignore whitespace
 # of the GNU General Public License, incorporated herein by reference.
 from mercurial.i18n import _
-from mercurial import util
+from mercurial import scmutil
 import os, stat, inspect
 def opener(self, path, mode="r", text=False, atomictemp=False):
                 if doit:
                     os.chmod(f, s.st_mode | stat.S_IWRITE)
                     self.currentUi.status(_('made \'%s\' writable\n') % f)
-    return util.opener.makewritable_origopener(self, path, mode, text, atomictemp)
+    return scmutil.opener.makewritable_origopener(self, path, mode, text, atomictemp)
-util.opener.makewritable_origopener = util.opener.__call__
-util.opener.__call__ = opener
-util.opener.makewritable = False
-util.opener.currentUi = False
+scmutil.opener.makewritable_origopener = scmutil.opener.__call__
+scmutil.opener.__call__ = opener
+scmutil.opener.makewritable = False
+scmutil.opener.currentUi = False