You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by rh...@apache.org on 2011/05/13 20:09:06 UTC

svn commit: r1102837 - /subversion/trunk/subversion/libsvn_wc/wc-metadata.sql

Author: rhuijben
Date: Fri May 13 18:09:06 2011
New Revision: 1102837

URL: http://svn.apache.org/viewvc?rev=1102837&view=rev
Log:
* subversion/libsvn_wc/wc-metadata.sql
  (STMT_UPGRADE_TO_20): Fix upgrading to format 20 for whoever has MD5
    references in his BASE or WORKING trees.
    (Statement copied from the format 28 format bump)

Modified:
    subversion/trunk/subversion/libsvn_wc/wc-metadata.sql

Modified: subversion/trunk/subversion/libsvn_wc/wc-metadata.sql
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_wc/wc-metadata.sql?rev=1102837&r1=1102836&r2=1102837&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_wc/wc-metadata.sql (original)
+++ subversion/trunk/subversion/libsvn_wc/wc-metadata.sql Fri May 13 18:09:06 2011
@@ -624,6 +624,10 @@ END;
 
 -- STMT_UPGRADE_TO_20
 
+UPDATE NODES SET checksum=(SELECT checksum FROM pristine
+                           WHERE md5_checksum=nodes.checksum)
+WHERE EXISTS(SELECT 1 FROM pristine WHERE md5_checksum=nodes.checksum);
+
 INSERT INTO NODES (
        wc_id, local_relpath, op_depth, parent_relpath,
        repos_id, repos_path, revision,



Re: svn commit: r1102837 - /subversion/trunk/subversion/libsvn_wc/wc-metadata.sql

Posted by Daniel Shahaf <d....@daniel.shahaf.name>.
I reported on IRC errors upgrading format-19 working copies, this commit
was in response to those reports.

Greg Stein wrote on Sat, May 14, 2011 at 01:02:39 -0400:
> On Fri, May 13, 2011 at 14:09,  <rh...@apache.org> wrote:
> > Author: rhuijben
> > Date: Fri May 13 18:09:06 2011
> > New Revision: 1102837
> >
> > URL: http://svn.apache.org/viewvc?rev=1102837&view=rev
> > Log:
> > * subversion/libsvn_wc/wc-metadata.sql
> >  (STMT_UPGRADE_TO_20): Fix upgrading to format 20 for whoever has MD5
> >    references in his BASE or WORKING trees.
> >    (Statement copied from the format 28 format bump)
> 
> Why bother with this? It will eventually hit the code that does the
> f28 upgrade and perform this.
> 
> >...

Re: svn commit: r1102837 - /subversion/trunk/subversion/libsvn_wc/wc-metadata.sql

Posted by Greg Stein <gs...@gmail.com>.
On Fri, May 13, 2011 at 14:09,  <rh...@apache.org> wrote:
> Author: rhuijben
> Date: Fri May 13 18:09:06 2011
> New Revision: 1102837
>
> URL: http://svn.apache.org/viewvc?rev=1102837&view=rev
> Log:
> * subversion/libsvn_wc/wc-metadata.sql
>  (STMT_UPGRADE_TO_20): Fix upgrading to format 20 for whoever has MD5
>    references in his BASE or WORKING trees.
>    (Statement copied from the format 28 format bump)

Why bother with this? It will eventually hit the code that does the
f28 upgrade and perform this.

>...