diff -r 410b7153480a -r 093af1c7d58d hgext3rd/topic/destination.py --- a/hgext3rd/topic/destination.py Tue Aug 30 14:10:16 2016 -0700 +++ b/hgext3rd/topic/destination.py Tue Aug 30 15:15:05 2016 -0700 @@ -19,7 +19,7 @@ else: # XXX: using only the max here is flacky. That code should eventually # be updated to take care of the whole sourceset. - p1 = repo[max(sourceset)] + p1 = repo[max(sourceset)] top = p1.topic() if top: revs = repo.revs('topic(%s) - obsolete()', top)