comparison mercurial/repair.py @ 25970:d1419cfbd4f4

repair: use absolute_import
author Gregory Szorc <gregory.szorc@gmail.com>
date Sat, 08 Aug 2015 19:50:48 -0700
parents 3e84f40232c7
children a5f62af29517
comparison
equal deleted inserted replaced
25969:7b200566e474 25970:d1419cfbd4f4
4 # Copyright 2007 Matt Mackall 4 # Copyright 2007 Matt Mackall
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 mercurial import changegroup, exchange, util, bundle2 9 from __future__ import absolute_import
10 from mercurial.node import short 10
11 from mercurial.i18n import _
12 import errno 11 import errno
12
13 from .i18n import _
14 from .node import short
15 from . import (
16 bundle2,
17 changegroup,
18 exchange,
19 util,
20 )
13 21
14 def _bundle(repo, bases, heads, node, suffix, compress=True): 22 def _bundle(repo, bases, heads, node, suffix, compress=True):
15 """create a bundle with the specified revisions as a backup""" 23 """create a bundle with the specified revisions as a backup"""
16 usebundle2 = (repo.ui.configbool('experimental', 'bundle2-exp', True) and 24 usebundle2 = (repo.ui.configbool('experimental', 'bundle2-exp', True) and
17 repo.ui.config('experimental', 'strip-bundle2-version')) 25 repo.ui.config('experimental', 'strip-bundle2-version'))