Commits

Yuya Nishihara  committed 1c43021

wctxactions: fix return value of guessRename

Variable assignment creates another scope.

  • Participants
  • Parent commits dc336d5
  • Branches stable

Comments (0)

Files changed (1)

File tortoisehg/hgqt/wctxactions.py

     from tortoisehg.hgqt.guess import DetectRenameDialog
     dlg = DetectRenameDialog(repo, parent, *files)
     def matched():
-        ret = True
-    ret = False
+        ret[0] = True
+    ret = [False]
     dlg.matchAccepted.connect(matched)
     dlg.finished.connect(dlg.deleteLater)
     dlg.exec_()
-    return ret
+    return ret[0]
 
 def ignore(parent, ui, repo, files):
     from tortoisehg.hgqt.hgignore import HgignoreDialog