On Wed, Dec 24, 2014 at 8:32 AM, Baruch Burstein <bmburst...@gmail.com>
wrote:

> Is there a simple way, given 2 commits, to check if one is a descendant of
> the other?
>

One must recursively walk the PLINK table, following the PLINK.PID chain of
the ancestor looking for the descendent.  This can take substantial
computation on a large repo (such as the net-bsd src repo).  You can
perhaps restrict the search using timestamps, assuming there are no
"timewarps" in the repo.


-- 
D. Richard Hipp
d...@sqlite.org
_______________________________________________
fossil-dev mailing list
fossil-dev@lists.fossil-scm.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/fossil-dev

Reply via email to