Fossil SCM
Throw an error when the "fossil tag add" command specifies a CHECK-IN that does not exist.
Commit
8b2dd0573449e9d108d64d56203b713a575f2498
Parent
8d5ab7913e4d06e…
1 file changed
+1
+1
| --- src/tag.c | ||
| +++ src/tag.c | ||
| @@ -266,10 +266,11 @@ | ||
| 266 | 266 | assert( tagtype>=0 && tagtype<=2 ); |
| 267 | 267 | user_select(); |
| 268 | 268 | blob_zero(&uuid); |
| 269 | 269 | blob_append(&uuid, zObjName, -1); |
| 270 | 270 | if( name_to_uuid(&uuid, 9) ){ |
| 271 | + fossil_fatal("%s", g.zErrMsg); | |
| 271 | 272 | return; |
| 272 | 273 | } |
| 273 | 274 | rid = name_to_rid(blob_str(&uuid)); |
| 274 | 275 | blob_zero(&ctrl); |
| 275 | 276 | |
| 276 | 277 |
| --- 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 |