[PATCH 5 of 7 phases V2] phases: marked content of a changegroup as published

Matt Mackall mpm at selenic.com
Tue Nov 15 12:23:17 CST 2011


On Fri, 2011-11-11 at 00:26 +0100, Pierre-Yves David wrote:
> # HG changeset patch
> # User Pierre-Yves David <pierre-yves.david at ens-lyon.org>
> # Date 1320967140 -3600
> # Node ID 3821929726f368b8c8733252d23bb40c7936ddcf
> # Parent  5d3489f3e4eae03f532a25ddf358c703ace59fa7
> phases: marked content of a changegroup as published
> 
> diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py
> --- a/mercurial/localrepo.py
> +++ b/mercurial/localrepo.py
> @@ -1978,6 +1978,9 @@
>                            node=hex(cl.node(clstart)), source=srctype,
>                            url=url, pending=p)
>  
> +            added = [cl.node(r) for r in xrange(clstart, clend)]
> +            if srctype != 'strip':
> +                phases.advanceboundary(self, 0, added)

This is a hack, of course. It'd be better for strip() to deal with this
internally.

-- 
Mathematics is the supreme nostalgia of our time.




More information about the Mercurial-devel mailing list