[PATCH 2 of 5 flagprocessor v6] revlog: add 'raw' argument to revision and _addrevision
raf at durin42.com
Fri Dec 30 11:12:47 EST 2016
> On Dec 30, 2016, at 10:46 AM, Rémi Chaintron <remi.chaintron at gmail.com> wrote:
> The actual rawrevision() method is simply a personal preference as I like to have simpler apis on operations with optional arguments and I've seen this in other places, but I do not feel strongly about moving it to use the raw argument in calls to revision directly. Let me know what you prefer.
In this particular case, my opinion is that it’s a clear win to avoid the boolean parameter since raw=False is actually defined in terms of raw=True, so it makes sense to express the one case in terms of the other using a function call to expose the structure to the reader.
Not a requirement, but that’s my reasoning for the choice. :)
More information about the Mercurial-devel