From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 Date: Wed, 21 May 2014 23:52:38 -0700 Message-ID: From: Skip Tavakkolian To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: multipart/alternative; boundary=047d7b673d5e0b345a04f9f78fa1 Subject: [9fans] hgfs Topicbox-Message-UUID: ec54b8e8-ead8-11e9-9d60-3106f5b1d025 --047d7b673d5e0b345a04f9f78fa1 Content-Type: text/plain; charset=UTF-8 i'm playing with hgfs. here are some first observations/thoughts. for a given repository foo, if the repository mounted on /n/hg, had a hierarchy like: /n/hg /ctl /versions /foo it would feel more natural if i could do: % cat /n/hg/versions # list versions ... % echo version rev1 > /n/hg/ctl # pull + update -r rev1, etc. % ls /n/hg/foo .... # list of rev1 files % echo version rev2 > /n/hg/ctl % ls /n/hg/foo ... # list of rev2 files, etc % ed /n/hg/foo/main.c <<'EOF' $a // a useless comment . w q EOF % cat <<'EOF' >/n/hg/ctl tag "rev1beta1" # tag this version note "added a silly comment to main.c and tagged this version as beta1" # commit string? push # push the changes upstream, etc. EOF etc. it would be nice to map as many hg/git operations to file operations as possible. for the rest providing special files (ctl, versions, etc) and directives don't seem out of place. --047d7b673d5e0b345a04f9f78fa1 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
i'm playing with hgfs. here are some first observation= s/thoughts.

for a given repository foo, if the repositor= y mounted on /n/hg, had a hierarchy like:

=C2= =A0/n/hg
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 /ctl
=C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 /versions
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 /foo<= /div>

it would feel more natural if i could = do:

% cat /n/hg/versions =C2=A0# list versions
...
% echo version rev1 > /n/hg/ctl # pull + update -r re= v1, etc.
% ls /n/hg/foo
.... # list of rev1 files
=
% echo version rev2 > /n/hg/ctl
% ls /n/hg/foo
... # list of rev2 files, etc
% ed /n/hg/foo/main.c <<'= EOF'
$a
// a useless comment
.
= w
q
EOF
% cat <<'EOF' >/n/hg= /ctl
tag "rev1beta1" =C2=A0# tag this version
note &quo= t;added a silly comment to main.c and tagged this version as beta1" # = commit string?
push =C2=A0# push the changes upstream, etc.
=
EOF

etc.

it would be nice to map a= s many hg/git operations to file operations as possible. for the rest provi= ding special files (ctl, versions, etc) and directives don't seem out o= f place.


--047d7b673d5e0b345a04f9f78fa1--