This is an archive of the discontinued Mercurial Phabricator instance.

i18n: clean msgcache when encoding changes
AbandonedPublic

Authored by quark on Oct 5 2017, 4:47 PM.

Details

Reviewers
lothiraldan
Group Reviewers
hg-reviewers
Summary

In rare cases (ex. chg), encoding may change on the fly and existing i18n
msgcache needs to be cleared.

With demandimport disabled, test-commit-interactive.t now fails consistently
with and without chg.

Diff Detail

Repository
rHG Mercurial
Lint
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

quark created this revision.Oct 5 2017, 4:47 PM
quark edited the summary of this revision. (Show Details)Oct 5 2017, 6:41 PM
quark updated this revision to Diff 2490.
lothiraldan added inline comments.
mercurial/encoding.py
596

Should we catch exceptions here if a callback fails?

ryanmce added a subscriber: ryanmce.Oct 6 2017, 4:59 AM

Is there a bugzilla bug where I can see what issue this addresses?

quark added a comment.Oct 6 2017, 1:27 PM
In D958#16241, @ryanmce wrote:

Is there a bugzilla bug where I can see what issue this addresses?

There isn't. This series is to make test-commit-interactive.t pass with chg.

mercurial/encoding.py
596

I think it's the callback's responsibility to catch exceptions if they need to. Besides, we don't do that for hg.wirepeersetupfuncs.

lothiraldan accepted this revision.Oct 9 2017, 5:46 AM
lothiraldan added inline comments.
mercurial/encoding.py
596

Ok, thank you for the explanation.

yuja added a subscriber: yuja.Oct 13 2017, 8:58 AM

I've sent an alternative idea as D1053. Can you take a look?

quark abandoned this revision.Oct 13 2017, 1:05 PM

D1053 is a cleaner fix.