comparison mercurial/branchmap.py @ 25918:47f36e050c2e

branchmap: use absolute_import
author Gregory Szorc <gregory.szorc@gmail.com>
date Fri, 07 Aug 2015 19:51:55 -0700
parents 328739ea70c3
children 79ef867538ea
comparison
equal deleted inserted replaced
25917:aa323b53e3f9 25918:47f36e050c2e
3 # Copyright 2005-2007 Matt Mackall <mpm@selenic.com> 3 # Copyright 2005-2007 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 node import bin, hex, nullid, nullrev 8 from __future__ import absolute_import
9 import encoding 9
10 import scmutil 10 import array
11 import util 11 import struct
12 import time 12 import time
13 from array import array 13
14 from struct import calcsize, pack, unpack 14 from .node import (
15 bin,
16 hex,
17 nullid,
18 nullrev,
19 )
20 from . import (
21 encoding,
22 scmutil,
23 util,
24 )
25
26 array = array.array
27 calcsize = struct.calcsize
28 pack = struct.pack
29 unpack = struct.unpack
15 30
16 def _filename(repo): 31 def _filename(repo):
17 """name of a branchcache file for a given repo or repoview""" 32 """name of a branchcache file for a given repo or repoview"""
18 filename = "cache/branch2" 33 filename = "cache/branch2"
19 if repo.filtername: 34 if repo.filtername: