Lines Matching full:ud
16 def supports(self, ud, d): argument
20 return ud.type in ['gitannex']
22 def urldata_init(self, ud, d): argument
23 super(GitANNEX, self).urldata_init(ud, d)
24 if ud.shallow:
25 ud.shallow_extra_refs += ['refs/heads/git-annex', 'refs/heads/synced/*']
27 def uses_annex(self, ud, d, wd): argument
28 for name in ud.names:
30 runfetchcmd("%s rev-list git-annex" % (ud.basecmd), d, quiet=True, workdir=wd)
37 def update_annex(self, ud, d, wd): argument
39 runfetchcmd("%s annex get --all" % (ud.basecmd), d, quiet=True, workdir=wd)
42 runfetchcmd("chmod u+w -R %s/annex" % (ud.clonedir), d, quiet=True, workdir=wd)
46 def download(self, ud, d): argument
47 Git.download(self, ud, d)
49 if not ud.shallow or ud.localpath != ud.fullshallow:
50 if self.uses_annex(ud, d, ud.clonedir):
51 self.update_annex(ud, d, ud.clonedir)
53 def clone_shallow_local(self, ud, dest, d): argument
54 super(GitANNEX, self).clone_shallow_local(ud, dest, d)
57 runfetchcmd("%s annex init" % ud.basecmd, d, workdir=dest)
61 if self.uses_annex(ud, d, dest):
62 runfetchcmd("%s annex get" % ud.basecmd, d, workdir=dest)
65 def unpack(self, ud, destdir, d): argument
66 Git.unpack(self, ud, destdir, d)
69 runfetchcmd("%s annex init" % (ud.basecmd), d, workdir=ud.destdir)
73 annex = self.uses_annex(ud, d, ud.destdir)
75 runfetchcmd("%s annex get" % (ud.basecmd), d, workdir=ud.destdir)
76 … runfetchcmd("chmod u+w -R %s/.git/annex" % (ud.destdir), d, quiet=True, workdir=ud.destdir)