[PATCH 6 of 7 V2] context: add a bumped attributes for changectx
Patrick Mézard
patrick at mezard.eu
Sun Oct 14 11:26:21 CDT 2012
Le 03/10/12 23:21, Pierre-Yves David a écrit :
> # HG changeset patch
> # User Pierre-Yves David <pierre-yves.david at logilab.fr>
> # Date 1349297849 -7200
> # Node ID d96d66880c8cc9b47e422de4f738bf4960c58932
> # Parent 6f36fcc8f5315fa54d6104348c8d175838f15825
> context: add a bumped attributes for changectx
>
> Same as unstable(), returns true if the changeset is bumped.
>
> diff --git a/mercurial/context.py b/mercurial/context.py
> --- a/mercurial/context.py
> +++ b/mercurial/context.py
> @@ -243,6 +243,11 @@
> """True if the changeset is not obsolete but it's ancestor are"""
> return self.rev() in obsmod.getobscache(self._repo, 'unstable')
>
> + def bumped(self):
> + """True if the changeset try to be a successors of a public changeset
successor
> + """
> + return self.rev() in obsmod.getobscache(self._repo, 'bumped')
> +
> def _fileinfo(self, path):
> if '_manifest' in self.__dict__:
> try:
--
Patrick Mézard
More information about the Mercurial-devel
mailing list