mirror of
https://github.com/facebook/sapling.git
synced 2025-01-08 14:46:47 +03:00
py3: make hgext/mq.py use absolute_import
This commit is contained in:
parent
8d03cfe483
commit
336149484f
44
hgext/mq.py
44
hgext/mq.py
@ -62,19 +62,39 @@ This extension used to provide a strip command. This command now lives
|
||||
in the strip extension.
|
||||
'''
|
||||
|
||||
from mercurial.i18n import _
|
||||
from mercurial.node import bin, hex, short, nullid, nullrev
|
||||
from mercurial.lock import release
|
||||
from mercurial import commands, cmdutil, hg, scmutil, util, revset
|
||||
from mercurial import dispatch
|
||||
from mercurial import extensions, error, phases
|
||||
from mercurial import patch as patchmod
|
||||
from mercurial import lock as lockmod
|
||||
from mercurial import localrepo
|
||||
from mercurial import registrar
|
||||
from mercurial import subrepo
|
||||
import os, re, errno, shutil
|
||||
from __future__ import absolute_import
|
||||
|
||||
import errno
|
||||
import os
|
||||
import re
|
||||
import shutil
|
||||
from mercurial.i18n import _
|
||||
from mercurial.node import (
|
||||
bin,
|
||||
hex,
|
||||
nullid,
|
||||
nullrev,
|
||||
short,
|
||||
)
|
||||
from mercurial import (
|
||||
cmdutil,
|
||||
commands,
|
||||
dispatch,
|
||||
error,
|
||||
extensions,
|
||||
hg,
|
||||
localrepo,
|
||||
lock as lockmod,
|
||||
patch as patchmod,
|
||||
phases,
|
||||
registrar,
|
||||
revset,
|
||||
scmutil,
|
||||
subrepo,
|
||||
util,
|
||||
)
|
||||
|
||||
release = lockmod.release
|
||||
seriesopts = [('s', 'summary', None, _('print first line of patch header'))]
|
||||
|
||||
cmdtable = {}
|
||||
|
@ -21,7 +21,6 @@
|
||||
hgext/largefiles/reposetup.py not using absolute_import
|
||||
hgext/largefiles/uisetup.py not using absolute_import
|
||||
hgext/largefiles/wirestore.py not using absolute_import
|
||||
hgext/mq.py not using absolute_import
|
||||
hgext/rebase.py not using absolute_import
|
||||
hgext/share.py not using absolute_import
|
||||
hgext/win32text.py not using absolute_import
|
||||
@ -85,7 +84,7 @@
|
||||
hgext/largefiles/reposetup.py: error importing: <AttributeError> 'dict' object has no attribute 'iteritems' (error at revset.py:*) (glob)
|
||||
hgext/largefiles/uisetup.py: error importing module: <SyntaxError> invalid syntax (archival.py, line *) (line *) (glob)
|
||||
hgext/largefiles/wirestore.py: error importing module: <ImportError> No module named 'lfutil' (line *) (glob)
|
||||
hgext/mq.py: error importing module: <SyntaxError> invalid syntax (commands.py, line *) (line *) (glob)
|
||||
hgext/mq.py: error importing: <AttributeError> 'dict' object has no attribute 'iteritems' (error at revset.py:*) (glob)
|
||||
hgext/notify.py: error importing: <AttributeError> 'dict' object has no attribute 'iteritems' (error at revset.py:*) (glob)
|
||||
hgext/pager.py: error importing: <AttributeError> 'dict' object has no attribute 'iteritems' (error at revset.py:*) (glob)
|
||||
hgext/patchbomb.py: error importing: <AttributeError> 'dict' object has no attribute 'iteritems' (error at revset.py:*) (glob)
|
||||
|
Loading…
Reference in New Issue
Block a user