Mercurial > evolve
diff hgext3rd/topic/revset.py @ 1986:042356d5ba59
ngtip: rely on topicmap for 'ngtip'
ngtip is an old function that predates the introduction of a more proper topic
aware 'topicmap'. We replace the old code with a call to the new one. This
change set function return type and have minor effect in a couple of place.
author | Pierre-Yves David <pierre-yves.david@ens-lyon.org> |
---|---|
date | Tue, 16 Aug 2016 15:32:54 +0200 |
parents | cd56f4d8b5a3 |
children | db788700ed82 |
line wrap: on
line diff
--- a/hgext3rd/topic/revset.py Sun Aug 14 19:57:58 2016 +0200 +++ b/hgext3rd/topic/revset.py Tue Aug 16 15:32:54 2016 +0200 @@ -53,7 +53,7 @@ branch = revset.getstring(args[0], 'ngtip() argument must be a string') if branch == '.': branch = repo['.'].branch() - return subset & destination.ngtip(repo, branch) + return subset & revset.baseset(destination.ngtip(repo, branch)) def stackset(repo, subset, x): """`stack()`