Commits

Wagner Bruna committed ae4192b

filedata: fix mode-only change detection on working dir

After committing an exec bit only change, changing it back
wouldn't be detected.

  • Participants
  • Parent commits 2dd54e2
  • Branches stable

Comments (0)

Files changed (1)

tortoisehg/hgqt/filedata.py

             fctx, newdata = res
             self.contents = newdata
             change = None
-            for pfctx in fctx.parents():
-                if 'x' in fctx.flags() and 'x' not in pfctx.flags():
+            for pctx in ctx.parents():
+                if 'x' in fctx.flags() and 'x' not in pctx.flags(wfile):
                     change = _('set')
-                elif 'x' not in fctx.flags() and 'x' in pfctx.flags():
+                elif 'x' not in fctx.flags() and 'x' in pctx.flags(wfile):
                     change = _('unset')
             if change:
                 lbl = _("exec mode has been <font color='red'>%s</font>")