Plugins/VcsPlugins/vcsSubversion/SvnStatusDialog.py

changeset 53
c3eb7cc1ff8b
parent 13
1af94a91f439
child 55
b5c84934de9c
equal deleted inserted replaced
52:ba69827929ee 53:c3eb7cc1ff8b
11 import os 11 import os
12 12
13 from PyQt4.QtCore import * 13 from PyQt4.QtCore import *
14 from PyQt4.QtGui import * 14 from PyQt4.QtGui import *
15 15
16 from E4Gui.E4Application import e4App 16 from E4Gui.E4Application import e5App
17 17
18 from .Ui_SvnStatusDialog import Ui_SvnStatusDialog 18 from .Ui_SvnStatusDialog import Ui_SvnStatusDialog
19 19
20 import Preferences 20 import Preferences
21 21
505 self.trUtf8("Commit"), 505 self.trUtf8("Commit"),
506 self.trUtf8("""There are no uncommitted changes available/selected.""")) 506 self.trUtf8("""There are no uncommitted changes available/selected."""))
507 return 507 return
508 508
509 if Preferences.getVCS("AutoSaveFiles"): 509 if Preferences.getVCS("AutoSaveFiles"):
510 vm = e4App().getObject("ViewManager") 510 vm = e5App().getObject("ViewManager")
511 for name in names: 511 for name in names:
512 vm.saveEditor(name) 512 vm.saveEditor(name)
513 self.vcs.vcsCommit(names, '') 513 self.vcs.vcsCommit(names, '')
514 514
515 def __committed(self): 515 def __committed(self):
533 return 533 return
534 534
535 self.vcs.vcsAdd(names) 535 self.vcs.vcsAdd(names)
536 self.on_refreshButton_clicked() 536 self.on_refreshButton_clicked()
537 537
538 project = e4App().getObject("Project") 538 project = e5App().getObject("Project")
539 for name in names: 539 for name in names:
540 project.getModel().updateVCSStatus(name) 540 project.getModel().updateVCSStatus(name)
541 541
542 def __revert(self): 542 def __revert(self):
543 """ 543 """

eric ide

mercurial