Commits

Yuya Nishihara committed 098db73

filedata: remove extra code which was necessary to handle clean state

  • Participants
  • Parent commits d80a50b
  • Branches stable

Comments (0)

Files changed (1)

File tortoisehg/hgqt/filedata.py

             return
 
         if status in ('I', '?'):
-            if ctx.rev() is None:
-                if status in ('I', '?'):
-                    self.flabel += _(' <i>(is unversioned)</i>')
-                if os.path.getsize(absfile) > maxdiff:
-                    self.error = mde
-                    return
-                else:
-                    data = util.posixfile(absfile, 'r').read()
-            elif ctx.hasStandin(wfile):
-                data = '\0'
-            else:
-                data = ctx.filectx(wfile).data()
+            assert ctx.rev() is None
+            self.flabel += _(' <i>(is unversioned)</i>')
+            if os.path.getsize(absfile) > maxdiff:
+                self.error = mde
+                return
+            data = util.posixfile(absfile, 'r').read()
             if not force and '\0' in data:
                 self.error = 'binary file'
             else: