[PATCH 1 of 2 STABLE] revlog: if start is nullrev, end is always a descendant
Matt Mackall
mpm at selenic.com
Sun Nov 7 15:58:47 CST 2010
On Sun, 2010-11-07 at 21:06 +0900, Nicolas Dumazet wrote:
> # HG changeset patch
> # User Nicolas Dumazet <nicdumz.commits at gmail.com>
> # Date 1289121367 -32400
> # Branch stable
> # Node ID eef3494b814709d36f7ba25cdb4b127701552856
> # Parent ea7ad8c3988aa27266b24b3cc1a52bcdcb91b0e0
> revlog: if start is nullrev, end is always a descendant
>
> diff --git a/mercurial/revlog.py b/mercurial/revlog.py
> --- a/mercurial/revlog.py
> +++ b/mercurial/revlog.py
> @@ -869,6 +869,8 @@
> return c
>
> def descendant(self, start, end):
> + if start == nullrev:
> + return True
> for i in self.descendants(start):
> if i == end:
> return True
Patches this simple you should just push to crew.
--
Mathematics is the supreme nostalgia of our time.
More information about the Mercurial-devel
mailing list