Mercurial > public > mercurial-scm > hg-stable
diff hgext/rebase.py @ 29128:e521cb13d354
py3: make hgext/rebase.py use absolute_import
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Fri, 06 May 2016 22:21:32 +0530 |
parents | 8ede973597fd |
children | a0939666b836 |
line wrap: on
line diff
--- a/hgext/rebase.py Fri May 06 21:54:31 2016 +0530 +++ b/hgext/rebase.py Fri May 06 22:21:32 2016 +0530 @@ -14,14 +14,41 @@ https://mercurial-scm.org/wiki/RebaseExtension ''' -from mercurial import hg, util, repair, merge, cmdutil, commands, bookmarks -from mercurial import extensions, patch, scmutil, phases, obsolete, error -from mercurial import copies, destutil, repoview, registrar, revset -from mercurial.commands import templateopts -from mercurial.node import nullrev, nullid, hex, short -from mercurial.lock import release +from __future__ import absolute_import + +import errno +import os +from mercurial import ( + bookmarks, + cmdutil, + commands, + copies, + destutil, + error, + extensions, + hg, + lock, + merge, + obsolete, + patch, + phases, + registrar, + repair, + repoview, + revset, + scmutil, + util, +) +from mercurial.node import ( + hex, + nullid, + nullrev, + short, +) from mercurial.i18n import _ -import os, errno + +release = lock.release +templateopts = commands.templateopts # The following constants are used throughout the rebase module. The ordering of # their values must be maintained.