9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] A simple experiment
@ 2010-04-27 17:38 ron minnich
  2010-04-27 17:49 ` erik quanstrom
                   ` (2 more replies)
  0 siblings, 3 replies; 90+ messages in thread
From: ron minnich @ 2010-04-27 17:38 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

I had interest in being able to see plan 9 source at bitbucket.org.
Part of the driver was my continuing inability to get replica to work
well at home, and part just a need to tinker :-)

So, I created an empty repo at bitbucket.org,
http://bitbucket.org/rminnich/sysfromiso/overview

and then did the usual
hg clone -e '/bin/openssh/ssh -2' ssh://hg@bitbucket.org/rminnich/sysfromiso

At this point on Plan 9 I have a directory, sysfromiso, that is empty
save for a .hg

Now on linux or other systems, you copy a bunch of directories in
there, hg add them, and away you go.

Plan 9 is more interesting:

hget http://plan9.bell-labs.com/plan9/download/plan9.iso.bz2>/tmp/iso.bz2
 rc -c 'cd /tmp; bunzip2 iso.bz2'
 9660srv -f /tmp/iso iso
mount /srv/iso /n/iso

now I've got the sources over there in /n/iso. What's next?

Simple:

cd sysfromiso
bind -a /n/iso .

And then add some trees:
hg add sys/src

then
hg commit
hg push -e '/bin/openssh/ssh -2'

And I've got a starting point. What's interesting is that the
directory always looks empty until I do the bind:
term% ls sysfromiso
sysfromiso/.hg
term%

So the script to continue updating the repo is pretty simple:
 #!/bin/rc
hget http://plan9.bell-labs.com/plan9/download/plan9.iso.bz2>/tmp/iso.bz2
 rc -c 'cd /tmp; bunzip2 iso.bz2'
 9660srv -f /tmp/iso iso
mount /srv/iso /n/iso
ape/psh
cd sysfromiso
bind -b /n/iso .
x=`date`
hg commit -m "$x"
hg push -e  '/bin/openssh/ssh -2'

(note I need ape/psh when I use ssh for pushes -- quoting rules issue)

This can be run from cron -- once you get through the ssh issues I
mentioned in the earlier note.

Result is an hg repo on bitbucket.org that I can get to from anywhere,
and I can watch as Geoff continues to beat on the kw port :-)

More importantly, it's going to be easier for me to bisect and find
problems when I build from kernel source, which is very handy in my
case. The web interface of bitbucket gives me a pretty reasonable way
to compare different revs. I'm offering this note in the event others
want to use this interface and repo.

ron



^ permalink raw reply	[flat|nested] 90+ messages in thread

end of thread, other threads:[~2010-05-03 11:34 UTC | newest]

Thread overview: 90+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-27 17:38 [9fans] A simple experiment ron minnich
2010-04-27 17:49 ` erik quanstrom
2010-04-27 18:05   ` Francisco J Ballesteros
2010-04-27 22:20   ` ron minnich
2010-04-27 22:22     ` erik quanstrom
2010-04-27 17:54 ` jake
2010-04-27 17:57   ` John Floren
2010-04-27 17:59     ` erik quanstrom
2010-04-27 18:35       ` John Floren
2010-04-27 18:56         ` Jorden M
2010-04-27 19:03         ` Skip Tavakkolian
2010-04-27 22:23           ` ron minnich
2010-04-28 11:51             ` Steve Simon
2010-04-28 13:18               ` Ethan Grammatikidis
2010-04-28 13:26                 ` erik quanstrom
2010-04-28 13:50                   ` Ethan Grammatikidis
2010-04-28 14:03                     ` erik quanstrom
2010-04-28 15:15                       ` Charles Forsyth
2010-04-28 13:20               ` erik quanstrom
2010-04-28 17:52               ` Tim Newsham
2010-04-28 17:57                 ` Tim Newsham
2010-04-28 18:00                 ` erik quanstrom
2010-04-28 18:42                   ` ron minnich
2010-04-28 19:06                     ` erik quanstrom
2010-04-28 19:40                       ` Russ Cox
2010-04-28 20:36                     ` Francisco J Ballesteros
2010-04-28 20:51                       ` ron minnich
2010-04-29 13:19                         ` Eric Van Hensbergen
2010-04-28 21:05                       ` EBo
2010-04-28 21:14                         ` ron minnich
2010-04-28 22:06                           ` EBo
2010-04-28 21:15                         ` Gorka Guardiola
2010-04-28 23:18                           ` [9fans] references/citations [was: A simple experiment] EBo
2010-04-28 21:18                       ` [9fans] A simple experiment Skip Tavakkolian
2010-04-28 23:04                         ` Francisco J Ballesteros
2010-04-29 12:40                     ` roger peppe
2010-04-29 12:54                       ` David Leimbach
2010-04-29 14:35                         ` erik quanstrom
2010-04-29 15:06                           ` David Leimbach
2010-04-29 15:24                             ` ron minnich
2010-04-29 15:34                             ` erik quanstrom
2010-04-29 16:06                               ` David Leimbach
2010-04-29 16:09                                 ` erik quanstrom
2010-04-29 17:08                               ` Bakul Shah
2010-04-29 17:20                                 ` ron minnich
2010-04-29 17:32                                   ` erik quanstrom
2010-04-30  2:30                                   ` Anthony Sorace
2010-04-30  4:27                                     ` erik quanstrom
2010-04-30 10:51                                     ` hiro
2010-04-30 14:46                                       ` Anthony Sorace
2010-04-29 17:23                                 ` erik quanstrom
2010-04-30  3:47                                   ` Bakul Shah
2010-04-30  5:01                                     ` erik quanstrom
2010-04-30 15:59                                       ` Bakul Shah
2010-04-30 16:13                                         ` erik quanstrom
2010-05-02 21:26                                           ` Bakul Shah
2010-04-29 18:52                               ` Lyndon Nerenberg
2010-04-29 19:03                                 ` erik quanstrom
2010-04-29 19:54                                   ` Skip Tavakkolian
2010-04-29 19:58                                     ` erik quanstrom
2010-04-29 20:25                                       ` erik quanstrom
2010-05-03 11:34                                   ` Akshat Kumar
2010-04-29 19:47                                 ` Skip Tavakkolian
2010-04-29 17:48                         ` Tim Newsham
2010-04-29 17:59                           ` David Leimbach
2010-04-29 18:41                             ` Skip Tavakkolian
2010-04-29 18:42                               ` David Leimbach
2010-04-29 19:48                                 ` Skip Tavakkolian
2010-04-29 19:44                         ` C H Forsyth
2010-04-29 19:58                           ` Skip Tavakkolian
2010-04-29 20:41                           ` David Leimbach
2010-04-29 14:22                       ` erik quanstrom
2010-04-29 14:36                         ` David Leimbach
2010-04-29 14:43                           ` erik quanstrom
2010-04-29 15:03                             ` David Leimbach
2010-04-29 15:16                               ` ron minnich
2010-04-29 15:25                                 ` Eric Van Hensbergen
2010-04-29 18:24                                   ` EBo
2010-04-29 15:06                             ` Gabriel Díaz
2010-04-29 20:32                               ` Christopher Nielsen
2010-04-29 20:40                                 ` erik quanstrom
2010-04-29 22:39                                   ` Christopher Nielsen
2010-04-29 20:45                                 ` hiro
2010-04-29 23:42                                 ` Derek Fawcus
2010-04-29 23:57                                   ` erik quanstrom
2010-04-30  9:44                                   ` Charles Forsyth
2010-04-29 15:18                       ` ron minnich
2010-04-27 22:21       ` ron minnich
2010-04-27 21:36 ` Federico G. Benavento
2010-04-27 21:54   ` EBo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).