Yea, I guess I pretty much knew that already. Hacked something together that works. Need to get a couple more git/svn repo projects to test it though, just to be sure. Will push to git tomorrow or weekend and let you know so you can check it out.<br>
<br>Max<br><br><div class="gmail_quote">On Thu, Jan 21, 2010 at 9:54 PM, C. Titus Brown <span dir="ltr">&lt;<a href="mailto:ctb@msu.edu">ctb@msu.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="h5">On Thu, Jan 21, 2010 at 08:52:56PM -0400, Max Laite wrote:<br>
&gt;  # now, do a clone, from either the parent OR the local cache<br>
&gt;         location = self.repository<br>
&gt;         if os.path.isdir(cache_dir):<br>
&gt;             location = cache_dir<br>
&gt;<br>
&gt;         cmdlist = [&#39;git&#39;, &#39;clone&#39;, self.repository]<br>
&gt;         (ret, out, err) = _run_command(cmdlist)<br>
&gt;<br>
&gt;         self.results_dict[&#39;clone&#39;] = \<br>
&gt;                  dict(status=ret, output=out, errout=err,<br>
&gt;                       command=str(cmdlist))<br>
&gt;         if ret != 0:<br>
&gt;             return<br>
&gt;<br>
&gt;         print cmdlist, out<br>
&gt;<br>
&gt;<br>
&gt; My assumption for this was that it does a clone to the temp directory or<br>
&gt; wherever it was doing the install from locally. It checks to see if the<br>
&gt; cache_dir exists and if it does, it does the clone from there so that you<br>
&gt; don&#39;t use up the repo&#39;s bandwidth. &#39;location&#39; is never used though, so it<br>
&gt; just pulls from the online repo anyways.....Just looking for some<br>
&gt; clarification....<br>
&gt;<br>
&gt; As a note i have two variables for cache_dir now, for use in creation if it<br>
&gt; doesn&#39;t exist....One that holds the info for if ~/.pony-build exists and one<br>
&gt; to store path to the individual repo eg. ~/.pony-build/figleaf ........<br>
&gt;<br>
&gt; The code above is unedited......<br>
&gt;<br>
&gt; Don&#39;t forget to CC list, whoever responds.<br>
<br>
</div></div>Hi Max,<br>
<br>
the logic for the code checkout should be something like this:<br>
<br>
--<br>
<br>
if cache directory exists:<br>
  update cache directory from main repository<br>
else:<br>
  create cache directory by doing a clean checkout from main repository<br>
<br>
copy cache directory into current working space<br>
---<br>
<br>
not a direct answer but I think it gets at your question -- does it?<br>
<br>
cheers,<br>
--titus<br>
<font color="#888888">--<br>
C. Titus Brown, <a href="mailto:ctb@msu.edu">ctb@msu.edu</a><br>
</font></blockquote></div><br>