equal
deleted
inserted
replaced
493 """ |
493 """ |
494 # _partialmatch() of filtered changelog could take O(len(repo)) time, |
494 # _partialmatch() of filtered changelog could take O(len(repo)) time, |
495 # which would be unacceptably slow. so we look for hash collision in |
495 # which would be unacceptably slow. so we look for hash collision in |
496 # unfiltered space, which means some hashes may be slightly longer. |
496 # unfiltered space, which means some hashes may be slightly longer. |
497 |
497 |
|
498 minlength=max(minlength, 1) |
|
499 |
498 def disambiguate(prefix): |
500 def disambiguate(prefix): |
499 """Disambiguate against revnums.""" |
501 """Disambiguate against revnums.""" |
500 if repo.ui.configbool('experimental', 'revisions.prefixhexnode'): |
502 if repo.ui.configbool('experimental', 'revisions.prefixhexnode'): |
501 if mayberevnum(repo, prefix): |
503 if mayberevnum(repo, prefix): |
502 return 'x' + prefix |
504 return 'x' + prefix |