changelog shortlog tags branches files raw gz bz2 help

Mercurial > hg > ventivac / changeset: rename Vac->vdroot to Vac->openroot, better name.

changeset 126: 07b5d02499fd
parent 125: e6afbc6fb9f9
child 127: 7f377ffc9ad3
author: Mechiel Lukkien <mechiel@ueber.net>
date: Mon, 20 Aug 2007 13:08:21 +0200
files: appl/cmd/vacfs.b appl/cmd/vacget.b appl/cmd/vacput.b appl/lib/vac.b module/vac.m
description: rename Vac->vdroot to Vac->openroot, better name.
     1.1--- a/appl/cmd/vacfs.b	Mon Aug 20 13:04:57 2007 +0200
     1.2+++ b/appl/cmd/vacfs.b	Mon Aug 20 13:08:21 2007 +0200
     1.3@@ -127,7 +127,7 @@
     1.4 		de.emode = Sys->DMDIR|8r555;
     1.5 		rootelem = Elem.mkdir(Qfakeroot, de, big 0, nil, Qfakeroot);
     1.6 	} else {
     1.7-		(vd, de, err) := vac->vdroot(session, *score);
     1.8+		(vd, de, err) := vac->openroot(session, *score);
     1.9 		if(err != nil)
    1.10 			error(err);
    1.11 		qid := ++lastqid;
    1.12@@ -342,7 +342,7 @@
    1.13 			if(ok != 0)
    1.14 				return (nil, "bad score");
    1.15 
    1.16-			(vd, de, err) := vac->vdroot(session, score);
    1.17+			(vd, de, err) := vac->openroot(session, score);
    1.18 			if(err != nil)
    1.19 				return (nil, err);
    1.20 
     2.1--- a/appl/cmd/vacget.b	Mon Aug 20 13:04:57 2007 +0200
     2.2+++ b/appl/cmd/vacget.b	Mon Aug 20 13:08:21 2007 +0200
     2.3@@ -70,7 +70,7 @@
     2.4 		error(sprint("handshake: %r"));
     2.5 	say("have handshake");
     2.6 
     2.7-	(vd, nil, err) := vac->vdroot(session, *score);
     2.8+	(vd, nil, err) := vac->openroot(session, *score);
     2.9 	if(err != nil)
    2.10 		error(err);
    2.11 
     3.1--- a/appl/cmd/vacput.b	Mon Aug 20 13:04:57 2007 +0200
     3.2+++ b/appl/cmd/vacput.b	Mon Aug 20 13:08:21 2007 +0200
     3.3@@ -104,7 +104,7 @@
     3.4 	vd: ref Vacdir;
     3.5 	if(basescore != nil) {
     3.6 		err: string;
     3.7-		(vd, nil, err) = vac->vdroot(session, *basescore);
     3.8+		(vd, nil, err) = vac->openroot(session, *basescore);
     3.9 		if(err != nil)
    3.10 			error("opening base score: "+err);
    3.11 
     4.1--- a/appl/lib/vac.b	Mon Aug 20 13:04:57 2007 +0200
     4.2+++ b/appl/lib/vac.b	Mon Aug 20 13:08:21 2007 +0200
     4.3@@ -1053,7 +1053,7 @@
     4.4 }
     4.5 
     4.6 
     4.7-vdroot(session: ref Session, score: Venti->Score): (ref Vacdir, ref Direntry, string)
     4.8+openroot(session: ref Session, score: Venti->Score): (ref Vacdir, ref Direntry, string)
     4.9 {
    4.10 	d := vread(session, score, Roottype, Rootsize);
    4.11 	if(d == nil)
    4.12@@ -1097,7 +1097,7 @@
    4.13 	if(ok <= 0)
    4.14 		return (nil, nil, sprint("reading root meta entry: %r"));
    4.15 
    4.16-say(sprint("vdroot: new score=%s", score.text()));
    4.17+say(sprint("openroot: new score=%s", score.text()));
    4.18 	return (Vacdir.new(session, e[0], e[1]), de, nil);
    4.19 }
    4.20 
     5.1--- a/module/vac.m	Mon Aug 20 13:04:57 2007 +0200
     5.2+++ b/module/vac.m	Mon Aug 20 13:08:21 2007 +0200
     5.3@@ -204,6 +204,6 @@
     5.4 		rewind:		fn(v: self ref Vacdir);
     5.5 	};
     5.6 
     5.7-	vdroot:	fn(session: ref Venti->Session, score: Venti->Score): (ref Vacdir, ref Direntry, string);
     5.8+	openroot:	fn(session: ref Venti->Session, score: Venti->Score): (ref Vacdir, ref Direntry, string);
     5.9 	readscore:	fn(path: string): (string, ref Venti->Score, string);
    5.10 };