equal
deleted
inserted
replaced
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 import changegroup, bookmarks |
9 from mercurial import changegroup, bookmarks |
10 from node import nullrev, short |
10 from mercurial.node import short |
11 from i18n import _ |
11 from mercurial.i18n import _ |
12 import os |
12 import os |
13 |
13 |
14 def _bundle(repo, bases, heads, node, suffix, compress=True): |
14 def _bundle(repo, bases, heads, node, suffix, compress=True): |
15 """create a bundle with the specified revisions as a backup""" |
15 """create a bundle with the specified revisions as a backup""" |
16 cg = repo.changegroupsubset(bases, heads, 'strip') |
16 cg = repo.changegroupsubset(bases, heads, 'strip') |