diff --git a/hgext3rd/githelp.py b/hgext3rd/githelp.py --- a/hgext3rd/githelp.py +++ b/hgext3rd/githelp.py @@ -27,6 +27,7 @@ extensions, fancyopts, registrar, + scmutil, util, ) from hgext import pager @@ -273,7 +274,7 @@ too many ways to spell revisions in git for us to reasonably catch all of them, so let's be conservative. """ - if string in repo: + if scmutil.isrevsymbol(repo, string): # if it's definitely a revision let's not even check if a file of the # same name exists. return False