Show More
@@ -6,11 +6,19 b'' | |||||
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 | |
13 |
|
12 | |||
|
13 | from .i18n import _ | |||
|
14 | from .node import short | |||
|
15 | from . import ( | |||
|
16 | bundle2, | |||
|
17 | changegroup, | |||
|
18 | exchange, | |||
|
19 | util, | |||
|
20 | ) | |||
|
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 |
General Comments 0
You need to be logged in to leave comments.
Login now