gzz-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gzz-commits] gzz/lava gzz/storm/impl/DirDB.java test/gzz/sto...


From: Benja Fallenstein
Subject: [Gzz-commits] gzz/lava gzz/storm/impl/DirDB.java test/gzz/sto...
Date: Fri, 17 Jan 2003 18:35:53 -0500

CVSROOT:        /cvsroot/gzz
Module name:    gzz
Changes by:     Benja Fallenstein <address@hidden>      03/01/17 18:35:52

Modified files:
        lava/gzz/storm/impl: DirDB.java 
        lava/test/gzz/storm/util: DiffIndexType.test 
Added files:
        lava/gzz/storm/util: DiffBlock.java StormFilerBlock.java 
                             VersionBlock.java 
        lava/test/gzz/storm/util: VersionBlock.test 

Log message:
        Baby steps towards diffing

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/lava/gzz/storm/impl/DirDB.java.diff?tr1=1.3&tr2=1.4&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/lava/gzz/storm/util/DiffBlock.java?rev=1.1
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/lava/gzz/storm/util/StormFilerBlock.java?rev=1.1
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/lava/gzz/storm/util/VersionBlock.java?rev=1.1
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/lava/test/gzz/storm/util/VersionBlock.test?rev=1.1
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/lava/test/gzz/storm/util/DiffIndexType.test.diff?tr1=1.1&tr2=1.2&r1=text&r2=text

Patches:
Index: gzz/lava/gzz/storm/impl/DirDB.java
diff -u gzz/lava/gzz/storm/impl/DirDB.java:1.3 
gzz/lava/gzz/storm/impl/DirDB.java:1.4
--- gzz/lava/gzz/storm/impl/DirDB.java:1.3      Tue Jan 14 10:43:06 2003
+++ gzz/lava/gzz/storm/impl/DirDB.java  Fri Jan 17 18:35:52 2003
@@ -86,14 +86,14 @@
        if(getIndexed().contains(m.block))
            return;
 
-       OutputStream os = new FileOutputStream(getKeyFile(m.key), true);
+       OutputStream os = new FileOutputStream(getKeyFile(m.key).getPath(), 
true);
        os.write(m.block.getURI().getBytes("US-ASCII"));
        os.write((byte)' ');
        os.write(HexUtil.byteArrToHex(m.value).getBytes("US-ASCII"));
        os.write((byte)'\n');
        os.close();
 
-       os = new FileOutputStream(new File(dbDir, "indexed_blocks"), true);
+       os = new FileOutputStream(new File(dbDir, "indexed_blocks").getPath(), 
true);
        os.write(m.block.getURI().getBytes("US-ASCII"));
        os.write((byte)'\n');
        os.close();
Index: gzz/lava/test/gzz/storm/util/DiffIndexType.test
diff -u gzz/lava/test/gzz/storm/util/DiffIndexType.test:1.1 
gzz/lava/test/gzz/storm/util/DiffIndexType.test:1.2
--- gzz/lava/test/gzz/storm/util/DiffIndexType.test:1.1 Tue Jan 14 10:45:03 2003
+++ gzz/lava/test/gzz/storm/util/DiffIndexType.test     Fri Jan 17 18:35:52 2003
@@ -21,7 +21,7 @@
     assert index.getDiffsFrom(ids[0]) == set([])
     
     h = gzz.storm.headers.UniqueHeader822()
-    h.add('Content-Type', gzz.storm.util.StormFiler.diffContentType)
+    h.add('Content-Type', gzz.storm.util.SimpleStormFiler.diffContentType)
     h.add('Content-Transfer-Encoding', 'binary')
     h.add('X-Gzz-Diff-From', ids[0].getHex())
     h.add('X-Gzz-Diff-To', ids[1].getHex())




reply via email to

[Prev in Thread] Current Thread [Next in Thread]