fbconduit: fix translating the globalrev for a commit not in repository

Reviewed By: quark-zju

Differential Revision: D16168059

fbshipit-source-id: 94276dbb3fb78f9e8d7f0e2b27ddc31225f2c256
This commit is contained in:
Saurabh Singh 2019-07-09 13:34:25 -07:00 committed by Facebook Github Bot
parent 4155d5df93
commit ac9bb62a88

View File

@ -10,6 +10,7 @@ from urllib import urlencode
from edenscm.mercurial import extensions, namespaces, node, registrar, revset, templater
from edenscm.mercurial.i18n import _
from edenscm.mercurial.node import bin
from edenscm.mercurial.util import httplib
@ -284,7 +285,7 @@ def _scmquerylookupglobalrev(orig, repo, rev):
)
matchedrevs = []
if hghash:
matchedrevs.append(repo[hghash].node())
matchedrevs.append(bin(hghash))
return matchedrevs
except Exception:
pass