histedit: fix unused variable warnings spotted by pyflakes
authorPatrick Mezard <patrick@mezard.eu>
Wed, 05 Sep 2012 22:01:09 +0200
changeset 17451 8e1fa8a32f2b
parent 17450 9c362a497eae
child 17452 4aec89d4faa2
histedit: fix unused variable warnings spotted by pyflakes
hgext/histedit.py
--- a/hgext/histedit.py	Fri Aug 03 17:26:58 2012 +0200
+++ b/hgext/histedit.py	Wed Sep 05 22:01:09 2012 +0200
@@ -238,7 +238,7 @@
     oldctx = repo[ha]
     hg.update(repo, ctx.node())
     try:
-        files = foldchanges(ui, repo, oldctx.p1().node() , ha, opts)
+        foldchanges(ui, repo, oldctx.p1().node() , ha, opts)
     except Exception:
         pass
     raise util.Abort(_('Make changes as needed, you may commit or record as '
@@ -264,7 +264,7 @@
 def finishfold(ui, repo, ctx, oldctx, newnode, opts, internalchanges):
     parent = ctx.parents()[0].node()
     hg.update(repo, parent)
-    files = foldchanges(ui, repo, parent, newnode, opts)
+    foldchanges(ui, repo, parent, newnode, opts)
     newmessage = '\n***\n'.join(
         [ctx.description()] +
         [repo[r].description() for r in internalchanges] +
@@ -287,7 +287,7 @@
     oldctx = repo[ha]
     hg.update(repo, ctx.node())
     try:
-        files = foldchanges(ui, repo, oldctx.p1().node() , ha, opts)
+        foldchanges(ui, repo, oldctx.p1().node() , ha, opts)
     except Exception:
         raise util.Abort(_('Fix up the change and run '
                            'hg histedit --continue'))