From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\)) From: Jeff Sickel In-Reply-To: Date: Thu, 19 Mar 2015 15:30:41 -0500 Content-Transfer-Encoding: quoted-printable Message-Id: 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> To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Subject: Re: [9fans] using git Topicbox-Message-UUID: 4a9bdeae-ead9-11e9-9d60-3106f5b1d025 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 = saying being sainted by the 9fans community wouldn=E2=80=99t be an honor, but = the 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=20 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 @@ 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 = using 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 = wrote: >=20 > 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. >=20 > On Thu, Mar 19, 2015 at 9:35 AM Charles Forsyth = wrote: >=20 > On 19 March 2015 at 16:09, wrote: > There is definitely some > learning curve and mindset change >=20 > Just what I want from a little servant that's supposed to help me = manage some file changes.