Fossil

Check-in [8b2dd05734]
Login

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

Overview
Comment:Throw an error when the "fossil tag add" command specifies a CHECK-IN that does not exist.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 8b2dd0573449e9d108d64d56203b713a575f2498
User & Date: drh 2009-01-21 03:21:30.000
Context
2009-01-21
03:34
After each item of the branch list, give a hyperlink to the timeline that shows all check-ins with the branch tag. check-in: bdcac62937 user: drh tags: trunk
03:21
Throw an error when the "fossil tag add" command specifies a CHECK-IN that does not exist. check-in: 8b2dd05734 user: drh tags: trunk
03:12
Do not print a warning about "a fork has occurred" when checking in to a leaf that is also the basis of a branch. check-in: 8d5ab7913e user: drh tags: trunk
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/tag.c.
264
265
266
267
268
269
270

271
272
273
274
275
276
277
  static const char zTagtype[] = { '-', '+', '*' };

  assert( tagtype>=0 && tagtype<=2 );
  user_select();
  blob_zero(&uuid);
  blob_append(&uuid, zObjName, -1);
  if( name_to_uuid(&uuid, 9) ){

    return;
  }
  rid = name_to_rid(blob_str(&uuid));
  blob_zero(&ctrl);

#if 0
  if( validate16(zTagname, strlen(zTagname)) ){







>







264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
  static const char zTagtype[] = { '-', '+', '*' };

  assert( tagtype>=0 && tagtype<=2 );
  user_select();
  blob_zero(&uuid);
  blob_append(&uuid, zObjName, -1);
  if( name_to_uuid(&uuid, 9) ){
    fossil_fatal("%s", g.zErrMsg);
    return;
  }
  rid = name_to_rid(blob_str(&uuid));
  blob_zero(&ctrl);

#if 0
  if( validate16(zTagname, strlen(zTagname)) ){