comparison mercurial/scmutil.py @ 27482:dde3da2246f1

scmutil: use absolute_import
author Gregory Szorc <gregory.szorc@gmail.com>
date Mon, 21 Dec 2015 21:23:43 -0800
parents 41d3e307a7c1
children b8405d739149
comparison
equal deleted inserted replaced
27481:029f02757c20 27482:dde3da2246f1
3 # Copyright Matt Mackall <mpm@selenic.com> 3 # Copyright Matt Mackall <mpm@selenic.com>
4 # 4 #
5 # This software may be used and distributed according to the terms of the 5 # This software may be used and distributed according to the terms of the
6 # GNU General Public License version 2 or any later version. 6 # GNU General Public License version 2 or any later version.
7 7
8 from i18n import _ 8 from __future__ import absolute_import
9 from mercurial.node import wdirrev 9
10 import util, error, osutil, revset, similar, encoding, phases 10 import errno
11 import pathutil 11 import glob
12 import match as matchmod 12 import os
13 import os, errno, re, glob, tempfile, shutil, stat 13 import re
14 import shutil
15 import stat
16 import tempfile
17
18 from .i18n import _
19 from .node import wdirrev
20 from . import (
21 encoding,
22 error,
23 match as matchmod,
24 osutil,
25 pathutil,
26 phases,
27 revset,
28 similar,
29 util,
30 )
14 31
15 if os.name == 'nt': 32 if os.name == 'nt':
16 import scmwindows as scmplatform 33 from . import scmwindows as scmplatform
17 else: 34 else:
18 import scmposix as scmplatform 35 from . import scmposix as scmplatform
19 36
20 systemrcpath = scmplatform.systemrcpath 37 systemrcpath = scmplatform.systemrcpath
21 userrcpath = scmplatform.userrcpath 38 userrcpath = scmplatform.userrcpath
22 39
23 class status(tuple): 40 class status(tuple):