From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 References: <201503112030.t2BKU71p008530@skeeve.com> <7B7A4AC6-02F2-4A28-AE1F-7D43B0494706@quintile.net> <955bc2dbc48c0ff6be29118880549364@brasstown.quanstro.net> <20150313181933.Horde.3OjxgyjF1TsOiSPwmslFLg1@ssl.eumx.net> <201503191609.t2JG9KwH011496@freefriends.org> In-Reply-To: From: Skip Tavakkolian Date: Thu, 19 Mar 2015 21:46:05 +0000 Message-ID: To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: multipart/alternative; boundary=001a1132e98e7ffd140511ab20ae Subject: Re: [9fans] using git Topicbox-Message-UUID: 4aa040a2-ead9-11e9-9d60-3106f5b1d025 --001a1132e98e7ffd140511ab20ae Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable cool! just to formalize the 9fans steps of canonization, i think it goes something like this: servant of 9fans =E2=86=92 loathed =E2=86=92 cursed =E2=86=92 saint On Thu, Mar 19, 2015 at 1:31 PM Jeff Sickel wrote= : > You can pick up a Cheesehead hat in Wisconsin, or online=E2=80=A6 > Some groups I=E2=80=99ve worked with would pass the Cheesehead hat to the= person > who checked something in that broke the nightly build. I=E2=80=99m not s= aying > being sainted by the 9fans community wouldn=E2=80=99t be an honor, but th= e > recipient might get something more along the lines of a cheesehead hat. > > > Until then, you can install hg-git for your python2.7 environment on Plan > 9: > > mkdir -p $home/lib/python2.7/site-packages/docs > bind -bc $home/lib/python2.7/site-packages /$cputype/lib/python2.7/site- > packages > bind -bc $home/lib/python2.7/site-packages /sys/lib/python2.7/site- > packages > > Grab dulwich (https://pypi.python.org/pypi/dulwich), I pulled the latest > master > from github: > > % unzip -f dulwich-master.zip > % cd dulwich > > To accommodate a strange import error not setting has_mmap correctly, pat= ch > dulwich/pack.py (this is from my hg clone version after installing): > > % hg diff -g dulwich/pack.py > diff --git a/dulwich/pack.py b/dulwich/pack.py > --- a/dulwich/pack.py > +++ b/dulwich/pack.py > @@ -59,6 +59,10 @@ > SEEK_CUR, > SEEK_END, > ) > +# For some reason the above try, except fails to set has_mmap =3D False > +if os.uname()[0] =3D=3D 'Plan9': > + has_mmap =3D False > + > import struct > from struct import unpack_from > import zlib > > > Install dulwich: > > % python setup.py --pure install > > > Grab and install hg-git: > > % hg clone https://bitbucket.org/durin42/hg-git > % cd hg-git > % python setup.py install > > > Add =E2=80=98hggit =3D=E2=80=98 to your $home/lib/hgrc [extensions]. > > Test it out: > > % hg clone git://github.com/schacon/hg-git.git > > > It isn=E2=80=99t exactly fast, and there are some cases where cloning usi= ng > https:// instead > of git:// can be an issue, but it works as a brace|cudgel|kludge until a > cleaned up > git is made available for Plan 9. > > Now to finish a little transmogrifier git script to trick go get... > > -jas > > > > > On Mar 19, 2015, at 1:03 PM, Skip Tavakkolian < > skip.tavakkolian@gmail.com> wrote: > > > > a 9fan/git-fan should volunteer to take one for the team, learn git > thoroughly, then hide it behind an fs layer. we will revere such a person= , > and nominate him/her for sainthood. > > > > On Thu, Mar 19, 2015 at 9:35 AM Charles Forsyth < > charles.forsyth@gmail.com> wrote: > > > > On 19 March 2015 at 16:09, wrote: > > There is definitely some > > learning curve and mindset change > > > > Just what I want from a little servant that's supposed to help me manag= e > some file changes. > > > --001a1132e98e7ffd140511ab20ae Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
cool!

just to formalize the 9fans steps of can= onization, i think it goes something like this:
servant of 9fans= =C2=A0=E2=86=92 loathed=C2=A0=E2=86=92 cursed=C2=A0=E2=86=92 saint



On Thu, Mar= 19, 2015 at 1:31 PM Jeff Sickel <jas@corpus-callosum.com> wrote:
You can pick up a Cheesehead hat in Wisconsin, or online=E2=80=A6
Some groups I=E2=80=99ve worked with would pass the Cheesehead hat to the p= erson
who checked something in that broke the nightly build.=C2=A0 I=E2=80=99m no= t saying
being sainted by the 9fans community wouldn=E2=80=99t be an honor, but the<= br> recipient might get something more along the lines of a cheesehead hat.


Until then, you can install hg-git for your python2.7 environment on Plan 9= :

mkdir -p $home/lib/python2.7/site-packages/docs
bind -bc $home/lib/python2.7/site-packages /$cputype/lib/python2.7/s= ite-packages
bind -bc $home/lib/python2.7/site-packages /sys/lib/python2.7/site-<= u>packages

Grab dulwich (https://pypi.python.org/pypi/dulwich), I pulled the latest= master
from github:

% unzip -f dulwich-master.zip
% cd dulwich

To accommodate a strange import error not setting has_mmap correctly, patch=
dulwich/pack.py (this is from my hg clone version after installing):

% hg diff -g dulwich/pack.py
diff --git a/dulwich/pack.py b/dulwich/pack.py
--- a/dulwich/pack.py
+++ b/dulwich/pack.py
@@ -59,6 +59,10 @@
=C2=A0 =C2=A0 =C2=A0SEEK_CUR,
=C2=A0 =C2=A0 =C2=A0SEEK_END,
=C2=A0 =C2=A0 =C2=A0)
+# For some reason the above try, except fails to set has_mmap =3D False +if os.uname()[0] =3D=3D 'Plan9':
+=C2=A0 =C2=A0 has_mmap =3D False
+
=C2=A0import struct
=C2=A0from struct import unpack_from
=C2=A0import zlib


Install dulwich:

% python setup.py --pure install


Grab and install hg-git:

% hg clone https://bitbucket.org/durin42/hg-git
% cd hg-git
% python setup.py install


Add =E2=80=98hggit =3D=E2=80=98 to your $home/lib/hgrc [extensions].

Test it out:

% hg clone git://github.com/schacon/hg-git.git


It isn=E2=80=99t exactly fast, and there are some cases where cloning using= https:// instead
of git:// can be an issue, but it works as a brace|cudgel|kludge until a cl= eaned up
git is made available for Plan 9.

Now to finish a little transmogrifier git script to trick go get...

-jas



> On Mar 19, 2015, at 1:03 PM, Skip Tavakkolian <skip.tavakkolian@gmail.com&= gt; wrote:
>
> a 9fan/git-fan should volunteer to take one for the team,=C2=A0 learn = git thoroughly, then hide it behind an fs layer. we will revere such a pers= on, and nominate him/her for sainthood.
>
> On Thu, Mar 19, 2015 at 9:35 AM Charles Forsyth <charles.forsyth@gmail.com&= gt; wrote:
>
> On 19 March 2015 at 16:09, <arnold@skeeve.com> wrote:
> There is definitely some
> learning curve and mindset change
>
> Just what I want from a little servant that's supposed to help me = manage some file changes.


--001a1132e98e7ffd140511ab20ae--