Mercurial > public > mercurial-scm > hg
diff mercurial/repair.py @ 20927:24a443948627
localrepo: move the changegroupsubset method in changegroup module
This is a gratuitous code move aimed at reducing the localrepo bloatness.
The method had few callers, not enough to be kept in local repo.
The peer API remains unchanged.
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Tue, 01 Apr 2014 14:25:03 -0700 |
parents | f49d60fa40a5 |
children | d3775db748a0 |
line wrap: on
line diff
--- a/mercurial/repair.py Tue Apr 01 14:13:34 2014 -0700 +++ b/mercurial/repair.py Tue Apr 01 14:25:03 2014 -0700 @@ -14,7 +14,7 @@ def _bundle(repo, bases, heads, node, suffix, compress=True): """create a bundle with the specified revisions as a backup""" - cg = repo.changegroupsubset(bases, heads, 'strip') + cg = changegroup.changegroupsubset(repo, bases, heads, 'strip') backupdir = repo.join("strip-backup") if not os.path.isdir(backupdir): os.mkdir(backupdir)