Mercurial > hg
comparison mercurial/filemerge.py @ 35053:495fcff10124
bundlerepo: assign bundle attributes in bundle type blocks
It is a bit wonky to assign the same object to multiple
attributes and then possibly overwrite them later.
Refactor the code to use a local variable and defer attribute
assignment until the final values are ready.
This required passing the bundle instance to _handlebundle2part().
The only use of this method I could find is Facebook's
treemanifest extension. Since it is a private method, I don't
think it warrants an API callout.
Differential Revision: https://phab.mercurial-scm.org/D1378
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Sat, 11 Nov 2017 18:34:50 -0800 |
parents | 5caae380ff90 |
children | 010179e21e91 |
comparison
equal
deleted
inserted
replaced
35052:df2a676a2e9e | 35053:495fcff10124 |
---|