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
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,
2 matches
Mail list logo