##// END OF EJS Templates
githelp: use revsymbol() for looking up symbol...
Martin von Zweigbergk -
r37406:764ada92 default
parent child Browse files
Show More
@@ -26,6 +26,7 b' from mercurial import ('
26 error,
26 error,
27 fancyopts,
27 fancyopts,
28 registrar,
28 registrar,
29 scmutil,
29 )
30 )
30 from mercurial.utils import (
31 from mercurial.utils import (
31 procutil,
32 procutil,
@@ -253,7 +254,7 b' def ispath(repo, string):'
253 too many ways to spell revisions in git for us to reasonably catch all of
254 too many ways to spell revisions in git for us to reasonably catch all of
254 them, so let's be conservative.
255 them, so let's be conservative.
255 """
256 """
256 if string in repo:
257 if scmutil.isrevsymbol(repo, string):
257 # if it's definitely a revision let's not even check if a file of the
258 # if it's definitely a revision let's not even check if a file of the
258 # same name exists.
259 # same name exists.
259 return False
260 return False
General Comments 0
You need to be logged in to leave comments. Login now