[PATCH] Add script to rewrite manifest to workaround lack of parent deltas
Dirkjan Ochtman
dirkjan at ochtman.nl
Fri Aug 21 01:26:57 CDT 2009
On Fri, Aug 21, 2009 at 01:04, Benoit
Boissinot<benoit.boissinot at ens-lyon.org> wrote:
> The following is simpler:
>
> children[i] = []
> parents = [p for p in rl.parentrevs(i) if p != -1]
> for p in parents:
> assert p in children
> children[p].append(i)
> if len(parents) == 0:
> root.append(i)
p != nullrev seems clearer than != -1.
> I found it a bit cleaner to split after at least one arg.
Agreed.
> Is the non-nested except/try/finally possible with python 2.4 ?
No, it's in 2.5.
Cheers,
Dirkjan
More information about the Mercurial-devel
mailing list