comparison mercurial/hg.py @ 25939:130c0b83e963

hg: use absolute_import
author Gregory Szorc <gregory.szorc@gmail.com>
date Sat, 08 Aug 2015 18:52:36 -0700
parents 0d37b9b21467
children 5243890224ff
comparison
equal deleted inserted replaced
25938:e194ada8d45f 25939:130c0b83e963
4 # Copyright 2006 Vadim Gelfer <vadim.gelfer@gmail.com> 4 # Copyright 2006 Vadim Gelfer <vadim.gelfer@gmail.com>
5 # 5 #
6 # This software may be used and distributed according to the terms of the 6 # This software may be used and distributed according to the terms of the
7 # GNU General Public License version 2 or any later version. 7 # GNU General Public License version 2 or any later version.
8 8
9 from i18n import _ 9 from __future__ import absolute_import
10 from lock import release 10
11 from node import nullid 11 import errno
12 12 import os
13 import localrepo, bundlerepo, unionrepo, httppeer, sshpeer, statichttprepo 13 import shutil
14 import bookmarks, lock, util, extensions, error, node, scmutil, phases, url 14
15 import cmdutil, discovery, repoview, exchange 15 from .i18n import _
16 import ui as uimod 16 from .node import nullid
17 import merge as mergemod 17
18 import verify as verifymod 18 from . import (
19 import errno, os, shutil 19 bookmarks,
20 bundlerepo,
21 cmdutil,
22 discovery,
23 error,
24 exchange,
25 extensions,
26 httppeer,
27 localrepo,
28 lock,
29 merge as mergemod,
30 node,
31 phases,
32 repoview,
33 scmutil,
34 sshpeer,
35 statichttprepo,
36 ui as uimod,
37 unionrepo,
38 url,
39 util,
40 verify as verifymod,
41 )
42
43 release = lock.release
20 44
21 def _local(path): 45 def _local(path):
22 path = util.expandpath(util.urllocalpath(path)) 46 path = util.expandpath(util.urllocalpath(path))
23 return (os.path.isfile(path) and bundlerepo or localrepo) 47 return (os.path.isfile(path) and bundlerepo or localrepo)
24 48