Submitter | phabricator |
---|---|
Date | April 7, 2018, 6:15 a.m. |
Message ID | <differential-rev-PHID-DREV-hcw24pnmvnxddxshq4wg-req@phab.mercurial-scm.org> |
Download | mbox | patch |
Permalink | /patch/30532/ |
State | Superseded |
Headers | show |
Comments
yuja requested changes to this revision. yuja added a comment. This revision now requires changes to proceed. IIUC, `Filtered*Error`s are re-raised up to scmutil.revsymbol(), so fixing up `changeid` here wouldn't work. REPOSITORY rHG Mercurial REVISION DETAIL https://phab.mercurial-scm.org/D3185 To: martinvonz, #hg-reviewers, yuja Cc: yuja, mercurial-devel
martinvonz added a comment. In https://phab.mercurial-scm.org/D3185#51146, @yuja wrote: > IIUC, `Filtered*Error`s are re-raised up to scmutil.revsymbol(), so fixing > up `changeid` here wouldn't work. Sigh, you're right, of course. Thanks for checking. So this is already handled correctly. I suppose that's why I sent https://phab.mercurial-scm.org/D3144 before https://phab.mercurial-scm.org/D3143. I'll just drop this patch then. REPOSITORY rHG Mercurial REVISION DETAIL https://phab.mercurial-scm.org/D3185 To: martinvonz, #hg-reviewers, yuja Cc: yuja, mercurial-devel
Patch
diff --git a/mercurial/context.py b/mercurial/context.py --- a/mercurial/context.py +++ b/mercurial/context.py @@ -411,6 +411,7 @@ self._rev = repo.changelog.rev(changeid) return except error.FilteredLookupError: + changeid = hex(changeid) # for the error message raise except LookupError: pass