[PATCH v2] remote-hg: getbundle changed in mercurial 3.0

2014-05-13 Thread William Giokas
In mercurial 3.0, getbundle was moved to the changegroup module, and gained a new argument. Due to this we cannot simply start using getbundle(...) imported from either one unconditionally, as that would cause errors in mercurial 3.0 without changing the syntax, and errors in mercurial 3.0 if we

Re: [PATCH v2] remote-hg: getbundle changed in mercurial 3.0

2014-05-13 Thread Junio C Hamano
William Giokas 1007...@gmail.com writes: +try: +from mercurial.changegroup import getbundle + +except ImportError: +def getbundle(repo, **kwargs): +return repo.getbundle(**kwargs) + import re import sys import os @@ -985,7 +992,8 @@ def push_unsafe(repo, remote,