Changeset 261a7f7d42e1…
Parent 2eab72bd970d…
by
Changes to one file · Browse files at 261a7f7d42e1 Showing diff from parent 2eab72bd970d Diff from another changeset...
@@ -14,7 +14,7 @@ from tortoisehg.hgqt.i18n import _
from tortoisehg.hgqt.messageentry import MessageEntry
from tortoisehg.hgqt import qtlib, qscilib, status, cmdui, branchop, revpanel
-from tortoisehg.hgqt import hgrcutil, mq
+from tortoisehg.hgqt import hgrcutil, mq, lfprompt
from PyQt4.QtCore import *
from PyQt4.QtGui import *
@@ -712,6 +712,22 @@ (_('&Add'), _('Cancel')), 0, 1,
checkedUnknowns).run()
if res == 0:
+ haslf = 'largefiles' in repo.extensions()
+ haskbf = 'kbfiles' in repo.extensions()
+ if haslf or haskbf:
+ result = lfprompt.promptForLfiles(self, repo.ui, repo,
+ checkedUnknowns, haskbf)
+ 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]
+ commandlines.append(cmd)
cmd = ['add', '--repository', repo.root] + \
[repo.wjoin(f) for f in checkedUnknowns]
commandlines.append(cmd)
|
Loading...