5 |
5 |
6 """ |
6 """ |
7 Module implementing the version control systems interface to Mercurial. |
7 Module implementing the version control systems interface to Mercurial. |
8 """ |
8 """ |
9 |
9 |
|
10 import contextlib |
10 import os |
11 import os |
|
12 import pathlib |
11 import shutil |
13 import shutil |
12 import contextlib |
14 |
13 import pathlib |
15 from PyQt6.QtCore import QCoreApplication, QFileSystemWatcher, pyqtSignal |
14 |
|
15 from PyQt6.QtCore import pyqtSignal, QFileSystemWatcher, QCoreApplication |
|
16 from PyQt6.QtWidgets import QApplication, QDialog, QInputDialog |
16 from PyQt6.QtWidgets import QApplication, QDialog, QInputDialog |
17 |
17 |
|
18 from eric7 import Preferences, Utilities |
|
19 from eric7.EricWidgets import EricFileDialog, EricMessageBox |
18 from eric7.EricWidgets.EricApplication import ericApp |
20 from eric7.EricWidgets.EricApplication import ericApp |
19 from eric7.EricWidgets import EricMessageBox, EricFileDialog |
|
20 |
|
21 from eric7.QScintilla.MiniEditor import MiniEditor |
21 from eric7.QScintilla.MiniEditor import MiniEditor |
22 |
22 from eric7.VCS.RepositoryInfoDialog import VcsRepositoryInfoDialog |
23 from eric7.VCS.VersionControl import VersionControl |
23 from eric7.VCS.VersionControl import VersionControl |
24 from eric7.VCS.RepositoryInfoDialog import VcsRepositoryInfoDialog |
24 |
25 |
25 from .HgClient import HgClient |
26 from .HgDialog import HgDialog |
26 from .HgDialog import HgDialog |
27 from .HgClient import HgClient |
|
28 |
|
29 from eric7 import Preferences, Utilities |
|
30 |
27 |
31 |
28 |
32 class Hg(VersionControl): |
29 class Hg(VersionControl): |
33 """ |
30 """ |
34 Class implementing the version control systems interface to Mercurial. |
31 Class implementing the version control systems interface to Mercurial. |
136 self.__repoIniFile = "" |
133 self.__repoIniFile = "" |
137 self.__defaultConfigured = False |
134 self.__defaultConfigured = False |
138 self.__defaultPushConfigured = False |
135 self.__defaultPushConfigured = False |
139 |
136 |
140 # instantiate the extensions |
137 # instantiate the extensions |
|
138 from .CloseheadExtension.closehead import Closehead |
|
139 from .GpgExtension.gpg import Gpg |
|
140 from .HisteditExtension.histedit import Histedit |
|
141 from .LargefilesExtension.largefiles import Largefiles |
|
142 from .PurgeExtension.purge import Purge |
141 from .QueuesExtension.queues import Queues |
143 from .QueuesExtension.queues import Queues |
142 from .PurgeExtension.purge import Purge |
|
143 from .GpgExtension.gpg import Gpg |
|
144 from .RebaseExtension.rebase import Rebase |
144 from .RebaseExtension.rebase import Rebase |
145 from .ShelveExtension.shelve import Shelve |
145 from .ShelveExtension.shelve import Shelve |
146 from .LargefilesExtension.largefiles import Largefiles |
|
147 from .StripExtension.strip import Strip |
146 from .StripExtension.strip import Strip |
148 from .HisteditExtension.histedit import Histedit |
|
149 from .CloseheadExtension.closehead import Closehead |
|
150 |
147 |
151 self.__extensions = { |
148 self.__extensions = { |
152 "mq": Queues(self), |
149 "mq": Queues(self), |
153 "purge": Purge(self), |
150 "purge": Purge(self), |
154 "gpg": Gpg(self), |
151 "gpg": Gpg(self), |