Mercurial > public > mercurial-scm > hg
diff hgext/convert/common.py @ 25748:baea47cafe75
convert: add support for specifying multiple revs
Previously convert could only take one '--rev'. This change allows the user to
specify multiple --rev entries. For instance, this could allow converting
multiple branches (but not all branches) at once from git.
In this first patch, we disable support for this for all sources. Future
patches will enable it for select sources (like git).
author | Durham Goode <durham@fb.com> |
---|---|
date | Wed, 08 Jul 2015 10:27:43 -0700 |
parents | 328739ea70c3 |
children | 86598f4fe1cf |
line wrap: on
line diff
--- a/hgext/convert/common.py Mon Jul 06 01:38:37 2015 +0800 +++ b/hgext/convert/common.py Wed Jul 08 10:27:43 2015 -0700 @@ -59,12 +59,12 @@ class converter_source(object): """Conversion source interface""" - def __init__(self, ui, path=None, rev=None): + def __init__(self, ui, path=None, revs=None): """Initialize conversion source (or raise NoRepo("message") exception if path is not a valid repository)""" self.ui = ui self.path = path - self.rev = rev + self.revs = revs self.encoding = 'utf-8'