[PATCH 3 of 9 phases] mq: turn changeset draft on qfinish (except if qparent is secret)

Matt Mackall mpm at selenic.com
Tue Jan 17 18:04:36 CST 2012


On Wed, 2012-01-18 at 00:37 +0100, Pierre-Yves David wrote:
> # HG changeset patch
> # User Pierre-Yves David <pierre-yves.david at ens-lyon.org>
> # Date 1326839230 -3600
> # Node ID 6cea4df53b7118cda84e278e72ff85bc76c92dd0
> # Parent  4470b206110b6004a42f086c0915695be0c3683a
> mq: turn changeset draft on qfinish (except if qparent is secret)
> 
> As mq aumatotically set changeset as secret, it should make them draft when he

automatically setS changesetS to

> -
> -    q.finish(repo, revs)
> -    q.savedirty()
> +    lock = repo.lock()
> +    try:
> +        q.finish(repo, revs)
> +        q.savedirty()
> +    finally:
> +        lock.release()
>      return 0

I guess this means the answer to my locking question was yes, but it's
hard to tell from this patch as it was from the last.

-- 
Mathematics is the supreme nostalgia of our time.




More information about the Mercurial-devel mailing list