Commits

Yuya Nishihara  committed 6058ab3

quickop: remove broken check of existence of largefiles extension

addLfiles and addWithPrompt shouldn't be called without largefiles, and
if it happened, addLfiles would raise UnboundLocalError.

  • Participants
  • Parent commits b369cc4

Comments (0)

Files changed (1)

File tortoisehg/hgqt/quickop.py

             QDialog.reject(self)
 
     def addLfiles(self):
-        if 'largefiles' in self.repo.extensions():
-            cmdline = ['add', '--large']
+        cmdline = ['add', '--large']
         files = self.stwidget.getChecked()
         if not files:
             qtlib.WarningMsgBox(_('No files selected'),
             self.files = files
             self.cmd.run(cmdline)
         if lfiles:
-            if 'largefiles' in self.repo.extensions():
-                cmdline = ['add', '--large']
+            cmdline = ['add', '--large']
             cmdline.extend(lfiles)
             self.files = lfiles
             self.cmd.run(cmdline)