Skip to content
Snippets Groups Projects
Commit 7a04853e authored by Augie Fackler's avatar Augie Fackler
Browse files

outgoing: abort on broken hg versions rather than printing wrong results

parent 6674c0d4
No related branches found
No related tags found
No related merge requests found
......@@ -130,6 +130,10 @@
kwname = 'onlyheads'
def findoutgoing(orig, local, remote, *args, **kwargs):
if isinstance(remote, gitrepo.gitrepo):
hgver = hg.util.version()
if hgver >= '1.8.9' or (hgver > '1.8' and '+' in hgver):
raise hgutil.Abort(
'hg-git outgoing support is broken on hg 1.9.x')
# clean up this cruft when we're 1.7-only, remoteheads and
# the return value change happened between 1.6 and 1.7.
kw = {}
......
......@@ -2,6 +2,7 @@
# Fails for some reason, need to investigate
# "$TESTDIR/hghave" git || exit 80
python -c 'from mercurial import util ; assert util.version() < "1.8"' || exit 80
# bail if the user does not have dulwich
python -c 'import dulwich, dulwich.repo' || exit 80
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment