<div class="gmail_quote">On Sat, Jun 25, 2011 at 15:24, Ben Walton <span dir="ltr"><<a href="mailto:bwalton@opencsw.org" target="_blank">bwalton@opencsw.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Excerpts from rupert THURNER's message of Sat Jun 25 06:58:12 -0400 2011:<br>
<br>
Hi Rupert,<br>
<div><br>
> 1. a short description how i set up my environment so i can<br>
> deliver, say mercurial. currently i do check out the whole mgar<br>
> tree, the externals are replaced with symbolic links. what would be<br>
> the best approach if gar is in git?<br>
><br>
> cd ~<br>
> pkg=mercurial<br>
> mkdir git-experiment<br>
> cd git-experiment<br>
> git clone <a href="https://rthurner" target="_blank">https://rthurner</a>@<a href="http://github.com/opencsw/gar.git" target="_blank">github.com/opencsw/gar.git</a> gar<br>
> git svn clone<br>
> <a href="https://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/pkg/$%7Bpkg%7D" target="_blank">https://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/pkg/${pkg}</a> ${pkg}<br>
> ln -s ${pkg}/trunk/gar gar<br>
<br>
</div>I think this would become:<br>
<br>
mgar init (maybe re-init to help with svn -> git)<br>
<br></blockquote><div><div><br></div><div>this seems not to work yet ...</div><div><br></div><div>rupert@login:~/git-ben</div><div>$ mgar init mercurial</div><div>-bash: mgar: command not found</div></div><div><br></div>
<div><div>rupert@unstable9s:~/git-ben</div><div>$ mgar</div><div>bash: mgar: command not found</div></div><div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
That would wrap the two steps that it currently does which are:<br>
svn co gar/mgar -> ~/opencsw/.builsys/<br>
svn co gar/pkg -> ~/opencsw/<br>
<br>
Replacing them with:<br>
git clone gar/mgar -> ...<br>
svn co gar/pkg -> ...<br>
<br>
You would then use mgar as you currently do (or if you're still doing<br>
the svn/gmake manually, those would remain the same for the time<br>
being.<br>
<div><br>
> 2. how would i create a new package stub using git?<br>
<br>
</div>This would (assuming we only use git/hg for that gar code and not the<br>
whole package tree) be the same. You'd do:<br>
<br>
cd ~/opencsw<br>
gmake newpkg-foo<br>
<br>
The whole idea of transitioning the gar code to something other than<br>
svn is made immensely easier by having it wrapped in mgar.<br>
<div><div></div><div><br></div></div></blockquote><div>i created, as experiment, <a href="https://github.com/opencsw/mercurial">https://github.com/opencsw/mercurial</a>, and i tried to write a description which one could execute with the existing buildserver installation. would this be ok like this: <a href="https://github.com/opencsw/gar/wiki/move-a-package-from-sourceforge.subversion-to-github.opencsw">https://github.com/opencsw/gar/wiki/move-a-package-from-sourceforge.subversion-to-github.opencsw</a> ?</div>
<meta http-equiv="content-type" content="text/html; charset=utf-8"><div><br></div><div><br></div><div>rupert.</div><div><br></div></div>