[PATCH 3 of 6 v6] transplant: convert applied() algorithm from nodes to revs
Bryan O'Sullivan
bos at serpentine.com
Thu Jun 14 18:13:51 CDT 2012
On Fri, Jun 8, 2012 at 2:27 PM, Joshua Redstone <joshua.redstone at fb.com>wrote:
> --- a/hgext/transplant.py Fri Jun 08 08:39:44 2012 -0700
> +++ b/hgext/transplant.py Fri Jun 08 14:21:32 2012 -0700
> - reachablerevs = repo.changelog.incancestors(
> - [repo.changelog.rev(parent)],
> - stoprev=repo.changelog.rev(t.lnode))
> - reachable = (repo.changelog.node(rev) for rev in
> reachablerevs)
> - if t.lnode in reachable:
> + lnoderev = repo.changelog.rev(t.lnode)
> + if lnoderev in repo.changelog.incancestors([parentrev],
> lnoderev)
> return True
>
The last added line here contains a syntax error.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20120614/d192078f/attachment.html>
More information about the Mercurial-devel
mailing list