hgext3rd/topic/__init__.py
changeset 4742 db3e7f6b5ceb
parent 4719 358f548f8d6d
child 4748 d04be27dcce9
--- a/hgext3rd/topic/__init__.py	Sun Jul 14 22:34:36 2019 -0700
+++ b/hgext3rd/topic/__init__.py	Fri Jul 12 23:24:04 2019 -0700
@@ -813,7 +813,7 @@
     bmstore = repo._bookmarks
 
     nodetobook = {}
-    for book, revnode in bmstore.iteritems():
+    for book, revnode in bmstore.items():
         if nodetobook.get(revnode):
             nodetobook[revnode].append(book)
         else:
@@ -845,7 +845,7 @@
                 actions[(bookmark, revnum)] = targetrevs
 
         elif convertall:
-            for bmark, revnode in sorted(bmstore.iteritems()):
+            for bmark, revnode in sorted(bmstore.items()):
                 revnum = repo[revnode].rev()
                 if revnum in skipped:
                     continue
@@ -863,7 +863,7 @@
         if actions:
             try:
                 tr = repo.transaction('debugconvertbookmark')
-                for ((bmark, revnum), targetrevs) in sorted(actions.iteritems()):
+                for ((bmark, revnum), targetrevs) in sorted(actions.items()):
                     _applyconvertbmarktopic(ui, repo, targetrevs, revnum, bmark, tr)
                 tr.close()
             finally: