Overview
SHA1 Hash: | 999b1779e71ed659e7b962ae96905bd9a6a5dcc6 |
---|---|
Date: | 2009-10-31 13:11:35 |
User: | drh |
Comment: | Make use of the is_a_version() function to check for valid version IDs
in the checkout command. Ticket |
Timelines: | ancestors | descendants | both | trunk |
Other Links: | files | ZIP archive | manifest |
Tags And Properties
- branch=trunk inherited from [a28c83647d]
- sym-trunk inherited from [a28c83647d]
Changes
[hide diffs]Modified src/checkout.c from [975bc66779] to [093dea6b92].
@@ -73,11 +73,11 @@ } vid = db_int(0, "SELECT rid FROM blob WHERE uuid=%B", &uuid); if( vid==0 ){ fossil_fatal("no such check-in: %s", g.argv[2]); } - if( !db_exists("SELECT 1 FROM mlink WHERE mid=%d", vid) ){ + if( !is_a_version(vid) ){ fossil_fatal("object [%.10s] is not a check-in", blob_str(&uuid)); } load_vfile_from_rid(vid); return vid; }