136 self.vcs) |
136 self.vcs) |
137 res = dia.startProcess(args, repodir) |
137 res = dia.startProcess(args, repodir) |
138 if res: |
138 if res: |
139 dia.exec() |
139 dia.exec() |
140 |
140 |
141 def hgLfPull(self, projectDir, revisions=None): |
141 def hgLfPull(self, revisions=None): |
142 """ |
142 """ |
143 Public method to pull missing large files into the local repository. |
143 Public method to pull missing large files into the local repository. |
144 |
144 |
145 @param projectDir directory name of the project (string) |
|
146 @param revisions list of revisions to pull (list of string) |
145 @param revisions list of revisions to pull (list of string) |
147 """ |
146 """ |
148 # find the root of the repo |
|
149 repodir = projectDir |
|
150 while not os.path.isdir(os.path.join(repodir, self.vcs.adminDir)): |
|
151 repodir = os.path.dirname(repodir) |
|
152 if os.path.splitdrive(repodir)[1] == os.sep: |
|
153 return |
|
154 |
|
155 revs = [] |
147 revs = [] |
156 if revisions: |
148 if revisions: |
157 revs = revisions |
149 revs = revisions |
158 else: |
150 else: |
159 from .LfRevisionsInputDialog import LfRevisionsInputDialog |
151 from .LfRevisionsInputDialog import LfRevisionsInputDialog |