equal
deleted
inserted
replaced
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 |