Submitter | Greg Ward |
---|---|
Date | April 25, 2014, 1:43 a.m. |
Message ID | <20140425014313.GC28877@gerg.ca> |
Download | mbox | patch |
Permalink | /patch/4438/ |
State | Deferred |
Headers | show |
Comments
On 04/24/2014 06:43 PM, Greg Ward wrote: > Also, this smells like one of those unpleasant interactions where both > sides need to be fixed. I.e. evolve should accept any sequence, rather > than assuming a list; hgsubversion should send a list, not a > generator. "Be liberal in what you accept and conservative in what you > emit." This logic should be moved into core. (will probably happens in 3.1) so we do not any hack in evolve anymore. (please for forward and submit your patch to evolve)
Patch
--- a/hgext/evolve.py +++ b/hgext/evolve.py @@ -319,6 +319,7 @@ # every time this test is run, a kitten is slain. # Change it as soon as possible if '[,{metadata}]' in orig.__doc__: + relations = list(relations) for idx, rel in enumerate(relations): prec = rel[0] sucs = rel[1]