Attachment Details
Not logged in
Overview

Artifact ID: 970efec06b1ec801a9da012848d64af5e8cb2ace
Ticket: e24ec32b1da5f8f5e4abe3b1eed6899f8be6f4cc
Date: 2011-03-23 20:08:14
User: anonymous
Artifact Attached: 23ecd875a2f597c567ce9e3d17cbfc122c120741
Filename:private_propagation.patch
Description:the attached seems to fix the problem with "fossil branch new" from a private checkin not preserving the privateness. also fixes the problem with clearsign prompting for a key even when this settings is defaulted to off. looks like the sql command for cancelling prior propagating tags between checkin.c /* For a new branch, cancel all prior propagating tags */ Stmt q; db_prepare(&q, "SELECT tagname FROM tagxref, tag" " WHERE tagxref.rid=%d AND tagxref.tagid=tag.tagid" " AND tagtype==2 AND tagname GLOB 'sym-*'" " AND tagname!='sym-'||%Q" " ORDER BY tagname", vid, zBranch); and branch.c /* Cancel all other symbolic tags */ db_prepare(&q, "SELECT tagname FROM tagxref, tag" " WHERE tagxref.rid=%d AND tagxref.tagid=tag.tagid" " AND tagtype>0 AND tagname GLOB 'sym-*'" " ORDER BY tagname", rootid); are slightly different. my sql is a bit rusty so not sure if they accomplish the same thing just in different ways. still not sure why "delete from private" and then a fossil rebuild still leaves artifacts in the private table
Content Appended
(file is 1046 bytes of binary data)