mirror of
https://github.com/facebook/sapling.git
synced 2025-01-08 14:46:47 +03:00
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:
parent
4155d5df93
commit
ac9bb62a88
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user