py3: port string formatting
authorGregory Szorc <gregory.szorc@gmail.com>
Sun, 11 Feb 2018 18:34:22 -0800
changeset 36147 6eb7d95f8970
parent 36146 29dd37a418aa
child 36148 0f9e52f900c4
py3: port string formatting `skipped` is a set of integer revs here. So cast integers to strings using %d. None doesn't cast to an empty string on Python 3. So use '' explicitly. Differential Revision: https://phab.mercurial-scm.org/D2146
hgext/rebase.py
--- a/hgext/rebase.py	Thu Jan 25 21:16:28 2018 -0500
+++ b/hgext/rebase.py	Sun Feb 11 18:34:22 2018 -0800
@@ -289,7 +289,7 @@
                     skipped.add(old)
                 seen.add(new)
         repo.ui.debug('computed skipped revs: %s\n' %
-                        (' '.join(str(r) for r in sorted(skipped)) or None))
+                        (' '.join('%d' % r for r in sorted(skipped)) or ''))
         repo.ui.debug('rebase status resumed\n')
 
         self.originalwd = originalwd