This is an archive of the discontinued Mercurial Phabricator instance.

amend: small refactor of logic for clarity
AbandonedPublic

Authored by spectral on Apr 19 2022, 3:21 PM.

Details

Reviewers
None
Group Reviewers
hg-reviewers

Diff Detail

Repository
rHG Mercurial
Branch
default
Lint
No Linters Available
Unit
No Unit Test Coverage

Event Timeline

spectral created this revision.Apr 19 2022, 3:21 PM

I'm not very tied to this, if someone thinks this makes it worse, feel free to reject.

I personally find this harder to read since you have to distribute in your head. -0?

I personally find this harder to read since you have to distribute in your head. -0?

I would normally agree with you, but I found this one a bit easier to read because it more easily triggered the "on a 4 element truth table, there's only one element I need to worry about" way of thinking of it, and I could read it to myself as "keep items in files unless (they're in filestoamend and they're the same file in base and wctx)". But like I said, I'm +0.5 at best and probably closer to +0.1. I'll drop it :)

spectral abandoned this revision.Apr 20 2022, 2:16 PM