Fossil

Check-in [6c62828b]
Login

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

Overview
Comment:Fix an unused variable and add a header comment to get_checkin_taglist().
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | jan-manifest-tags
Files: files | file ages | folders
SHA1:6c62828b7a34c40b5a2ef88069b72e004c0b88cb
User & Date: drh 2016-08-08 14:42:32
Context
2016-08-08
14:44
Merge updates from trunk. check-in: f63576a7 user: drh tags: jan-manifest-tags
14:42
Fix an unused variable and add a header comment to get_checkin_taglist(). check-in: 6c62828b user: drh tags: jan-manifest-tags
2016-08-06
16:20
Add more tags manifest test cases. Check the manifest.tags contents updates on tagging, commit and switching branches. Tests pass successfully on OS X. check-in: 2350b068 user: jan tags: jan-manifest-tags
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/checkout.c.

185
186
187
188
189
190
191










192
193
194
195
196
197
198
199
200
      zManFile = mprintf("%smanifest.tags", g.zLocalRoot);
      file_delete(zManFile);
      free(zManFile);
    }
  }
}











void get_checkin_taglist(int rid, Blob *pOut){
  char *zTags;
  Stmt stmt;
  blob_reset(pOut);
  if( g.localOpen ){
    char *zCurrent;
    int vid;
    vid = db_lget_int("checkout", 0);
    zCurrent = db_text(0, "SELECT value FROM tagxref"







>
>
>
>
>
>
>
>
>
>

<







185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202

203
204
205
206
207
208
209
      zManFile = mprintf("%smanifest.tags", g.zLocalRoot);
      file_delete(zManFile);
      free(zManFile);
    }
  }
}

/*
** Find the branch name and all symbolic tags for a particular check-in
** identified by "rid".
**
** The branch name is actually only extracted if this procedure is run
** from within a local check-out.  And the branch name is not the branch
** name for "rid" but rather the branch name for the current check-out.
** It is unclear if the rid parameter is always the same as the current
** check-out.
*/
void get_checkin_taglist(int rid, Blob *pOut){

  Stmt stmt;
  blob_reset(pOut);
  if( g.localOpen ){
    char *zCurrent;
    int vid;
    vid = db_lget_int("checkout", 0);
    zCurrent = db_text(0, "SELECT value FROM tagxref"