Fossil

Check-in [ac65f5bd54]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fix a bug in name resolution when the name begins with "tag:"
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: ac65f5bd54b71628d73843f82bfb955c40dde92d
User & Date: drh 2012-09-06 18:26:10.480
Context
2012-09-06
19:52
On the check-in info page, offer a selection of nearby leaves to diff against. check-in: 238db72dc9 user: drh tags: trunk
18:26
Fix a bug in name resolution when the name begins with "tag:" check-in: ac65f5bd54 user: drh tags: trunk
14:00
Add the "Invert" button to the "vdiff" web page. check-in: b0036a3c97 user: drh tags: trunk
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/name.c.
150
151
152
153
154
155
156

157
158
159
160
161
162
163
       " WHERE tag.tagname='sym-%q' "
       "   AND tagxref.tagid=tag.tagid AND tagxref.tagtype>0 "
       "   AND event.objid=tagxref.rid "
       "   AND event.type GLOB '%q'"
       " ORDER BY event.mtime DESC /*sort*/",
       &zTag[4], zType
    );

  }
  
  /* root:TAG -> The origin of the branch */
  if( memcmp(zTag, "root:", 5)==0 ){
    Stmt q;
    int rc;
    char *zBr;







>







150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
       " WHERE tag.tagname='sym-%q' "
       "   AND tagxref.tagid=tag.tagid AND tagxref.tagtype>0 "
       "   AND event.objid=tagxref.rid "
       "   AND event.type GLOB '%q'"
       " ORDER BY event.mtime DESC /*sort*/",
       &zTag[4], zType
    );
    return rid;
  }
  
  /* root:TAG -> The origin of the branch */
  if( memcmp(zTag, "root:", 5)==0 ){
    Stmt q;
    int rc;
    char *zBr;