mercurial/revset.py
changeset 16746 9acb5cd19162
parent 16720 e825a89de5d7
parent 16735 47b8ec0eb7fb
child 16755 d0b9ebba41e9
equal deleted inserted replaced
16745:27b2e1823e83 16746:9acb5cd19162
   760     # i18n: "id" is a keyword
   760     # i18n: "id" is a keyword
   761     n = getstring(l[0], _("id requires a string"))
   761     n = getstring(l[0], _("id requires a string"))
   762     if len(n) == 40:
   762     if len(n) == 40:
   763         rn = repo[n].rev()
   763         rn = repo[n].rev()
   764     else:
   764     else:
   765         rn = repo.changelog.rev(repo.changelog._partialmatch(n))
   765         rn = None
       
   766         pm = repo.changelog._partialmatch(n)
       
   767         if pm is not None:
       
   768             rn = repo.changelog.rev(pm)
       
   769 
   766     return [r for r in subset if r == rn]
   770     return [r for r in subset if r == rn]
   767 
   771 
   768 def outgoing(repo, subset, x):
   772 def outgoing(repo, subset, x):
   769     """``outgoing([path])``
   773     """``outgoing([path])``
   770     Changesets not found in the specified destination repository, or the
   774     Changesets not found in the specified destination repository, or the