Commits

Michal Sznajder committed 93ecd63

wctxactions, commit, quickop: remove references to kbfiles

FogCreek agreed to drop support for kbfiles (they will switch to largefiles
in the future)

Comments (0)

Files changed (3)

tortoisehg/hgqt/commit.py

                     checkedUnknowns).run()
             if res == 0:
                 haslf = 'largefiles' in repo.extensions()
-                haskbf = 'kbfiles' in repo.extensions()
-                if haslf or haskbf:
+                if haslf:
                     result = lfprompt.promptForLfiles(self, repo.ui, repo,
-                                                      checkedUnknowns, haskbf)
+                                                      checkedUnknowns, False)
                     if not result:
                         return
                     checkedUnknowns, lfiles = result
                     if lfiles:
-                        if haslf:
-                            cmd = ['add', '--repository', repo.root, '--large'] + \
-                                  [repo.wjoin(f) for f in lfiles]
-                        else:
-                            cmd = ['add', '--repository', repo.root, '--bf'] + \
-                                  [repo.wjoin(f) for f in lfiles]
+                        cmd = ['add', '--repository', repo.root, '--large'] + \
+                            [repo.wjoin(f) for f in lfiles]
                         commandlines.append(cmd)
                 cmd = ['add', '--repository', repo.root] + \
                       [repo.wjoin(f) for f in checkedUnknowns]

tortoisehg/hgqt/quickop.py

         if self.command == 'add':
             if 'largefiles' in self.repo.extensions():
                 self.addLfilesButton = QPushButton(_('Add &Largefiles'))
-            elif 'kbfiles' in self.repo.extensions():
-                self.addLfilesButton = QPushButton(_("Add &Bfiles"))
             else:
                 self.addLfilesButton = None
             if self.addLfilesButton:
                         pass
                     files.remove(wfile)
         elif self.command == 'add':
-            if 'largefiles' in self.repo.extensions() or 'kbfiles' in self.repo.extensions():
+            if 'largefiles' in self.repo.extensions():
                 self.addWithPrompt(files)
                 return
         if files:
             QDialog.reject(self)
 
     def addLfiles(self):
-        if 'kbfiles' in self.repo.extensions():
-            cmdline = ['add', '--bf']
-        else:
+        if 'largefiles' in self.repo.extensions():
             cmdline = ['add', '--large']
         files = self.stwidget.getChecked()
         if not files:
 
     def addWithPrompt(self, files):
         result = lfprompt.promptForLfiles(self, self.repo.ui, self.repo, files,
-                                          'kbfiles' in self.repo.extensions())
+                                          False)
         if not result:
             return
-        files, bfiles = result
+        files, lfiles = result
         if files:
             cmdline = ['add']
             cmdline.extend(files)
             self.files = files
             self.cmd.run(cmdline)
-        if bfiles:
-            if 'kbfiles' in self.repo.extensions():
-                cmdline = ['add', '--bf']
-            else:
+        if lfiles:
+            if 'largefiles' in self.repo.extensions():
                 cmdline = ['add', '--large']
-            cmdline.extend(bfiles)
-            self.files = bfiles
+            cmdline.extend(lfiles)
+            self.files = lfiles
             self.cmd.run(cmdline)
 
 instance = None

tortoisehg/hgqt/wctxactions.py

         make(_('&Add'), add, frozenset('I?'), 'fileadd')
         if 'largefiles' in self.repo.extensions():
             make(_('Add &Largefiles...'), addlf, frozenset('I?'))
-        elif 'kbfiles' in self.repo.extensions():
-            make(_('Add &Bfiles'), addlf, frozenset('I?'))
         make(_('&Detect Renames...'), guessRename, frozenset('A?!'),
              'detect_rename')
         make(_('&Ignore...'), ignore, frozenset('?'), 'ignore')
 
 def add(parent, ui, repo, files):
     haslf = 'largefiles' in repo.extensions()
-    haskbf = 'kbfiles' in repo.extensions()
-    if haslf or haskbf:
-        result = lfprompt.promptForLfiles(parent, ui, repo, files, haskbf)
+    if haslf:
+        result = lfprompt.promptForLfiles(parent, ui, repo, files, False)
         if not result:
             return False
         files, lfiles = result
                 if lfiles:
                     override_add(commands.add, ui, repo, large=True, *lfiles)
                 return True
-            if name == 'kbfiles':
-                override_add = module.bfsetup.override_add
-                if files:
-                    override_add(commands.add, ui, repo, *files)
-                if lfiles:
-                    override_add(commands.add, ui, repo, bf=True, *lfiles)
-                return True
     commands.add(ui, repo, *files)
     return True
 
             override_add = module.overrides.override_add
             override_add(commands.add, ui, repo, large=True, *files)
             return True
-        if name == 'kbfiles':
-            override_add = module.bfsetup.override_add
-            override_add(commands.add, ui, repo, bf=True, *files)
-            return True
     return False
 
 def guessRename(parent, ui, repo, files):