[PATCH 1 of 2] phases: add a phase and phasestr method to file context

Augie Fackler raf at durin42.com
Wed Oct 17 14:04:59 CDT 2012


pushing this too, thanks

On Oct 17, 2012, at 10:28 AM, Sean Farley <sean.michael.farley at gmail.com> wrote:

> # HG changeset patch
> # User Sean Farley <sean.michael.farley at gmail.com>
> # Date 1350425390 18000
> # Node ID 072adc076e641990cf0000ece34e9545ebaaa0b3
> # Parent  72c234081ae1350220132c69750f5a093902a1e7
> phases: add a phase and phasestr method to file context
> 
> diff --git a/mercurial/context.py b/mercurial/context.py
> --- a/mercurial/context.py
> +++ b/mercurial/context.py
> @@ -469,10 +469,14 @@
>         return self._changectx.description()
>     def branch(self):
>         return self._changectx.branch()
>     def extra(self):
>         return self._changectx.extra()
> +    def phase(self):
> +        return self._changectx.phase()
> +    def phasestr(self):
> +        return self._changectx.phasestr()
>     def manifest(self):
>         return self._changectx.manifest()
>     def changectx(self):
>         return self._changectx
> 
> _______________________________________________
> Mercurial-devel mailing list
> Mercurial-devel at selenic.com
> http://selenic.com/mailman/listinfo/mercurial-devel



More information about the Mercurial-devel mailing list