11 |
11 |
12 from PyQt4.QtGui import QDialog |
12 from PyQt4.QtGui import QDialog |
13 |
13 |
14 from ..HgExtension import HgExtension |
14 from ..HgExtension import HgExtension |
15 from ..HgDialog import HgDialog |
15 from ..HgDialog import HgDialog |
16 |
|
17 from .HgFetchDialog import HgFetchDialog |
|
18 |
16 |
19 |
17 |
20 class Fetch(HgExtension): |
18 class Fetch(HgExtension): |
21 """ |
19 """ |
22 Class implementing the fetch extension interface. |
20 Class implementing the fetch extension interface. |
41 while not os.path.isdir(os.path.join(repodir, self.vcs.adminDir)): |
39 while not os.path.isdir(os.path.join(repodir, self.vcs.adminDir)): |
42 repodir = os.path.dirname(repodir) |
40 repodir = os.path.dirname(repodir) |
43 if os.path.splitdrive(repodir)[1] == os.sep: |
41 if os.path.splitdrive(repodir)[1] == os.sep: |
44 return False |
42 return False |
45 |
43 |
|
44 from .HgFetchDialog import HgFetchDialog |
46 res = False |
45 res = False |
47 dlg = HgFetchDialog() |
46 dlg = HgFetchDialog() |
48 if dlg.exec_() == QDialog.Accepted: |
47 if dlg.exec_() == QDialog.Accepted: |
49 message, switchParent = dlg.getData() |
48 message, switchParent = dlg.getData() |
50 |
49 |