[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn commit: rev 4491 - trunk/subversion/libsvn_repos

From: <sussman_at_collab.net>
Date: 2003-01-21 23:26:43 CET

Man, look how simple this change was. I just *love* the design of our
dumpfile parser. :-)

sussman@tigris.org writes:

 Author: sussman
 Date: 2003-01-21 15:55:52 -0600 (Tue, 21 Jan 2003)
 New Revision: 4491
 
 Modified:
    trunk/subversion/libsvn_repos/load.c
 Log:
 
 Finish issue #1102: make our loader recognize a text-checksum header
 if present, and pass it into the fs for verification.
 
 * load.c (struct node_baton): add md5_checksum field.
   (make_node_baton): recognize the header, put into node_baton.
   (set_fulltext): pass md5_checksum field to svn_fs_apply_text().
 
 
 Modified: trunk/subversion/libsvn_repos/load.c
 ==============================================================================
 --- trunk/subversion/libsvn_repos/load.c (original)
 +++ trunk/subversion/libsvn_repos/load.c Tue Jan 21 15:55:53 2003
 @@ -61,6 +61,7 @@
    const char *path;
    svn_node_kind_t kind;
    enum svn_node_action action;
 + const char *md5_checksum; /* null, if not available */
  
    svn_revnum_t copyfrom_rev;
    const char *copyfrom_path;
 @@ -565,6 +566,12 @@
        nb-copyfrom_path = apr_pstrdup (pool, val);
      }
  
 + if ((val = apr_hash_get (headers, SVN_REPOS_DUMPFILE_TEXT_CONTENT_CHECKSUM,
 + APR_HASH_KEY_STRING)))
 + {
 + nb-md5_checksum = apr_pstrdup (pool, val);
 + }
 +
    /* What's cool about this dump format is that the parser just
       ignores any unrecognized headers. :-) */
  
 @@ -790,7 +797,7 @@
  
    return svn_fs_apply_text (stream,
                              rb-txn_root, nb-path,
 - NULL, /* ### todo */
 + nb-md5_checksum,
                              nb-pool);
  }
  
 
 
 ---------------------------------------------------------------------
 To unsubscribe, e-mail: svn-unsubscribe@subversion.tigris.org
 For additional commands, e-mail: svn-help@subversion.tigris.org

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 14 02:05:27 2006

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.