This is an archive of the discontinued Mercurial Phabricator instance.

simplemerge: add `filtereddata=False` to simplemerge()
AbandonedPublic

Authored by phillco on Aug 14 2017, 2:15 AM.

Details

Reviewers
None
Group Reviewers
hg-reviewers
Summary

In the next patch we'll make this function only take contexts, and also make
contrib/simplemerge work by having it pass fake context-like objects.

In order for those fake objects to work, simplemerge needs to know not to run
the repo decoding filters on them -- the data will already be decoded, coming
off the filesystem, and we won't have the repo object -- hence this flag.

Diff Detail

Repository
rHG Mercurial
Lint
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

phillco created this revision.Aug 14 2017, 2:15 AM

(from an IRC conversation)

I'm not crazy about the shape this makes the API, as I'd rather we didn't start growing awareness of filtering in layers this high.

I think we can probably kill contrib/simplemerge entirely - it's had nothing but cleanup changes and a feature removal since May of 2007, and I can't fathom a use for it today. Let's see if we can get consensus around that on the mailing lists and then hopefully simplify this a TON.

Also, timeless noticed abd66eb0889e, which reinforces my belief that we don't need contrib/simplemerge anymore.

phillco abandoned this revision.Aug 17 2017, 2:38 PM

Abandoned in favor of D434's approach.