[PATCH 2 of 4 phases] phases: implements simple revset symbol

Matt Mackall mpm at selenic.com
Thu Jan 5 21:46:15 CST 2012


On Wed, 2012-01-04 at 01:19 +0100, Pierre-Yves David wrote:
> # HG changeset patch
> # User Pierre-Yves David <pierre-yves.david at ens-lyon.org>
> # Date 1325635276 -3600
> # Node ID b92c0e00a7d839f7a7f14c2858b790cb3e7bdd8f
> # Parent  5bd197de486d13680484560fb56425bb503715ff
> phases: implements simple revset symbol
> 
> This changeset adds ``public()``, ``draft()`` and ``secret`` symbol for
> revset.
> 
> diff --git a/mercurial/revset.py b/mercurial/revset.py
> --- a/mercurial/revset.py
> +++ b/mercurial/revset.py
> @@ -10,6 +10,7 @@
>  import node as nodemod
>  import bookmarks as bookmarksmod
>  import match as matchmod
> +import phases as phasesmod

This is the convention for when we want to use a symbol for a different
purpose in the current scope, which you don't seem to be doing.

-- 
Mathematics is the supreme nostalgia of our time.




More information about the Mercurial-devel mailing list