Commits

Peer Stritzinger committed b42d3b5 Draft

Patch for issue 7 provided by Alexandre Patry (thanks!)

hgcollapse breaks with Mercurial version 2.3 with TypeError: 'int'
object is not iterable

For details see:

https://bitbucket.org/peerst/hgcollapse/issue/7/hgcollapse-breaks-with-mercurial-version

Comments (0)

Files changed (1)

hgext/collapse.py

         cmdutil.bail_if_changed(repo)
 
     parent = repo[first].parents()[0]
-    tomove = list(repo.changelog.descendants(last))
+    tomove = list(repo.changelog.descendants([last]))
 
     head_hgtags = get_hgtags_from_heads(ui, repo, last)
     if '.hgtags' in parent: