eric7/Plugins/VcsPlugins/vcsMercurial/LargefilesExtension/largefiles.py

branch
eric7
changeset 8356
68ec9c3d4de5
parent 8318
962bce857696
child 8358
144a6b854f70
equal deleted inserted replaced
8355:8a7677a63c8d 8356:68ec9c3d4de5
10 import os 10 import os
11 11
12 from PyQt6.QtCore import QTimer 12 from PyQt6.QtCore import QTimer
13 from PyQt6.QtWidgets import QDialog 13 from PyQt6.QtWidgets import QDialog
14 14
15 from E5Gui.E5Application import e5App 15 from E5Gui.EricApplication import ericApp
16 from E5Gui import E5MessageBox 16 from E5Gui import EricMessageBox
17 17
18 from ..HgExtension import HgExtension 18 from ..HgExtension import HgExtension
19 from ..HgDialog import HgDialog 19 from ..HgDialog import HgDialog
20 from ..HgClient import HgClient 20 from ..HgClient import HgClient
21 21
77 if res: 77 if res:
78 # step 2.1: start a command server client for the new repo 78 # step 2.1: start a command server client for the new repo
79 client = HgClient(newName, "utf-8", self.vcs) 79 client = HgClient(newName, "utf-8", self.vcs)
80 ok, err = client.startServer() 80 ok, err = client.startServer()
81 if not ok: 81 if not ok:
82 E5MessageBox.warning( 82 EricMessageBox.warning(
83 None, 83 None,
84 self.tr("Mercurial Command Server"), 84 self.tr("Mercurial Command Server"),
85 self.tr( 85 self.tr(
86 """<p>The Mercurial Command Server could not be""" 86 """<p>The Mercurial Command Server could not be"""
87 """ started.</p><p>Reason: {0}</p>""").format(err)) 87 """ started.</p><p>Reason: {0}</p>""").format(err))
112 self.vcs.hgEditConfig( 112 self.vcs.hgEditConfig(
113 repoName=newName, 113 repoName=newName,
114 withLargefiles=False 114 withLargefiles=False
115 ) 115 )
116 QTimer.singleShot( 116 QTimer.singleShot(
117 0, lambda: e5App().getObject("Project").openProject( 117 0, lambda: ericApp().getObject("Project").openProject(
118 newProjectFile)) 118 newProjectFile))
119 119
120 def hgAdd(self, names, mode): 120 def hgAdd(self, names, mode):
121 """ 121 """
122 Public method used to add a file to the Mercurial repository. 122 Public method used to add a file to the Mercurial repository.

eric ide

mercurial