Fossil SCM

Throw an error when the "fossil tag add" command specifies a CHECK-IN that does not exist.

drh 2009-01-21 03:21 trunk
Commit 8b2dd0573449e9d108d64d56203b713a575f2498
1 file changed +1
+1
--- src/tag.c
+++ src/tag.c
@@ -266,10 +266,11 @@
266266
assert( tagtype>=0 && tagtype<=2 );
267267
user_select();
268268
blob_zero(&uuid);
269269
blob_append(&uuid, zObjName, -1);
270270
if( name_to_uuid(&uuid, 9) ){
271
+ fossil_fatal("%s", g.zErrMsg);
271272
return;
272273
}
273274
rid = name_to_rid(blob_str(&uuid));
274275
blob_zero(&ctrl);
275276
276277
--- src/tag.c
+++ src/tag.c
@@ -266,10 +266,11 @@
266 assert( tagtype>=0 && tagtype<=2 );
267 user_select();
268 blob_zero(&uuid);
269 blob_append(&uuid, zObjName, -1);
270 if( name_to_uuid(&uuid, 9) ){
 
271 return;
272 }
273 rid = name_to_rid(blob_str(&uuid));
274 blob_zero(&ctrl);
275
276
--- src/tag.c
+++ src/tag.c
@@ -266,10 +266,11 @@
266 assert( tagtype>=0 && tagtype<=2 );
267 user_select();
268 blob_zero(&uuid);
269 blob_append(&uuid, zObjName, -1);
270 if( name_to_uuid(&uuid, 9) ){
271 fossil_fatal("%s", g.zErrMsg);
272 return;
273 }
274 rid = name_to_rid(blob_str(&uuid));
275 blob_zero(&ctrl);
276
277

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button