Lines Matching full:ud

31     def supports(self, ud, d):  argument
35 return ud.type in ['gitsm']
37 def process_submodules(self, ud, workdir, function, d): argument
65 for name in ud.names:
67 …gitmodules = runfetchcmd("%s show %s:.gitmodules" % (ud.basecmd, ud.revisions[name]), d, quiet=Tru…
74 …module_hash = runfetchcmd("%s ls-tree -z -d %s %s" % (ud.basecmd, ud.revisions[name], md['path']),…
86 revision[m] = ud.revisions[name]
92 newud = copy.copy(ud)
112 …fers to relative ssh reference %s. References may fail if not absolute." % (ud.url, uris[module]))
118 if url.endswith("{}{}".format(ud.host, ud.path)):
138 function(ud, url, module, paths[module], workdir, ld)
142 def need_update(self, ud, d): argument
143 if Git.need_update(self, ud, d):
147 def need_update_submodule(ud, url, module, modpath, workdir, d): argument
152 new_ud = newfetch.ud[url]
161 if ud.shallow and os.path.exists(ud.fullshallow) and not os.path.exists(ud.clonedir):
163 runfetchcmd("tar -xzf %s" % ud.fullshallow, d, workdir=tmpdir)
164 self.process_submodules(ud, tmpdir, need_update_submodule, d)
167 self.process_submodules(ud, ud.clonedir, need_update_submodule, d)
175 def download(self, ud, d): argument
176 def download_submodule(ud, url, module, modpath, workdir, d): argument
189 Git.download(self, ud, d)
193 if ud.shallow and os.path.exists(ud.fullshallow) and self.need_update(ud, d):
195 runfetchcmd("tar -xzf %s" % ud.fullshallow, d, workdir=tmpdir)
196 self.process_submodules(ud, tmpdir, download_submodule, d)
199 self.process_submodules(ud, ud.clonedir, download_submodule, d)
201 def unpack(self, ud, destdir, d): argument
202 def unpack_submodules(ud, url, module, modpath, workdir, d): argument
206 if ud.bareclone:
207 repo_conf = ud.destdir
209 repo_conf = os.path.join(ud.destdir, '.git')
221 …odule.%(module)s.url %(url)s" % {'basecmd': ud.basecmd, 'module': module, 'url' : local_path}, d, …
223 if ud.shallow:
224 …nfig submodule.%(module)s.shallow true" % {'basecmd': ud.basecmd, 'module': module}, d, workdir=ud
228 …runfetchcmd("%s config core.bare false" % (ud.basecmd), d, quiet=True, workdir=os.path.join(repo_c…
233 Git.unpack(self, ud, destdir, d)
235 ret = self.process_submodules(ud, ud.destdir, unpack_submodules, d)
237 if not ud.bareclone and ret:
241 …fetchcmd("%s submodule update --recursive --no-fetch" % (ud.basecmd), d, quiet=True, workdir=ud.de…
243 def implicit_urldata(self, ud, d): argument
247 def add_submodule(ud, url, module, modpath, workdir, d): argument
254 if ud.shallow and os.path.exists(ud.fullshallow) and ud.method.need_update(ud, d):
256 subprocess.check_call("tar -xzf %s" % ud.fullshallow, cwd=tmpdir, shell=True)
257 self.process_submodules(ud, tmpdir, add_submodule, d)
260 self.process_submodules(ud, ud.clonedir, add_submodule, d)