Fossil

Artifact [ef7aa51b]
Login

Artifact [ef7aa51b]

Artifact ef7aa51bede3bb00cda53474ee211b00f974c3d1:

Attachment "deltas.patch" to ticket [fbea61ca] added by anonymous 2011-02-10 21:04:31.
Index: src/manifest.c
===================================================================
--- src/manifest.c
+++ src/manifest.c
@@ -940,11 +940,11 @@
     int rid = uuid_to_rid(p->zBaseline, 0);
     if( rid==0 && !throwError ){
       rid = content_new(p->zBaseline);
       db_multi_exec(
          "INSERT OR IGNORE INTO orphan(rid, baseline) VALUES(%d,%d)",
-         rid, p->rid
+         p->rid, rid
       );
       return 1;
     }
     p->pBaseline = manifest_get(rid, CFTYPE_MANIFEST);
     if( p->pBaseline==0 ){