9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] hgfs
@ 2011-06-27  5:43 cinap_lenrek
  2011-06-27 13:15 ` hiro
  0 siblings, 1 reply; 26+ messages in thread
From: cinap_lenrek @ 2011-06-27  5:43 UTC (permalink / raw)
  To: 9fans

forgot the mention some bits:

hgfs gives you one directory per revision. a revision dir
looks like this:

cpu% cd /n/hg/99
cpu% ls -l
d-r-xr-xr-x M 37623 stanley.lieber hgfs   0 Apr 17 22:19 changes
d-r-xr-xr-x M 37623 stanley.lieber hgfs   0 Apr 17 22:19 files
--r--r--r-- M 37623 stanley.lieber hgfs 157 Apr 17 22:19 log
--r--r--r-- M 37623 stanley.lieber hgfs  16 Apr 17 22:19 rev1
--r--r--r-- M 37623 stanley.lieber hgfs   0 Apr 17 22:19 rev2
--r--r--r-- M 37623 stanley.lieber hgfs  25 Apr 17 22:19 who
--r--r--r-- M 37623 stanley.lieber hgfs  56 Apr 17 22:19 why

files/ contains the whole snapshot.
changes/ is like files, but contains only the files that where
changed in that revision.

log is the raw mercurial changelog entry.

rev1 and rev2 contain the directory names of the parent revisions.

the "who" file contains the commiter and "why" the commit message.

i'm thinking about providing some history(1) like rc scripts that
help with some daily tasks.

any suggestions and ideas are welcome.

source:
/n/sources/contrib/cinap_lenrek/hgfs.tgz
http://9hal.ath.cx/usr/cinap_lenrek/hgfs.tgz

--
cinap



^ permalink raw reply	[flat|nested] 26+ messages in thread
* [9fans] hgfs
@ 2014-05-22  6:52 Skip Tavakkolian
  2014-05-22  7:36 ` lucio
  2014-05-22 10:41 ` Aram Hăvărneanu
  0 siblings, 2 replies; 26+ messages in thread
From: Skip Tavakkolian @ 2014-05-22  6:52 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

[-- Attachment #1: Type: text/plain, Size: 961 bytes --]

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.

[-- Attachment #2: Type: text/html, Size: 1456 bytes --]

^ permalink raw reply	[flat|nested] 26+ messages in thread
* [9fans] hgfs
@ 2011-06-27  5:09 cinap_lenrek
  0 siblings, 0 replies; 26+ messages in thread
From: cinap_lenrek @ 2011-06-27  5:09 UTC (permalink / raw)
  To: 9fans

wrote a hgfs for plan9 that gives you read only access to all revisions
in a mercurial repository.

it provides a directory per revision. the revision directory can use
decimal revision number:

123/

or
f32acf03d/

this is a first step towards native tools for plan9 to work with
mercurial.

in plan9front, we forced ourselfs to use the python hg implementation
--
cinap



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

end of thread, other threads:[~2014-05-23  3:45 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-27  5:43 [9fans] hgfs cinap_lenrek
2011-06-27 13:15 ` hiro
  -- strict thread matches above, loose matches on Subject: below --
2014-05-22  6:52 Skip Tavakkolian
2014-05-22  7:36 ` lucio
2014-05-22  9:54   ` Aram Hăvărneanu
2014-05-22 10:30     ` lucio
2014-05-22 10:41 ` Aram Hăvărneanu
2014-05-22 15:35   ` Skip Tavakkolian
2014-05-22 15:56     ` erik quanstrom
2014-05-22 16:17       ` ron minnich
2014-05-22 16:21         ` Kurt H Maier
2014-05-22 16:31         ` Aram Hăvărneanu
2014-05-22 18:37           ` ron minnich
2014-05-22 18:45             ` Kurt H Maier
2014-05-22 18:51             ` Aram Hăvărneanu
2014-05-22 19:02               ` Latchesar Ionkov
2014-05-22 19:13                 ` Kurt H Maier
2014-05-22 19:16                   ` erik quanstrom
2014-05-22 19:23                   ` Latchesar Ionkov
2014-05-23  3:45                     ` hiro
2014-05-22 19:11               ` Skip Tavakkolian
2014-05-22 19:23         ` Bakul Shah
2014-05-22 19:47         ` Skip Tavakkolian
2014-05-22 16:20       ` lucio
2014-05-22 19:46   ` Bakul Shah
2011-06-27  5:09 cinap_lenrek

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).