Submitter | phabricator |
---|---|
Date | April 6, 2018, 12:41 p.m. |
Message ID | <2b0107f697024d6c490d8bca839fd206@localhost.localdomain> |
Download | mbox | patch |
Permalink | /patch/30432/ |
State | Not Applicable |
Headers | show |
Comments
Patch
diff --git a/hgext/githelp.py b/hgext/githelp.py --- a/hgext/githelp.py +++ b/hgext/githelp.py @@ -26,6 +26,7 @@ error, fancyopts, registrar, + scmutil, ) from mercurial.utils import ( procutil, @@ -253,7 +254,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