Fossil

Check-in [61ca4141cc]
Login

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

Overview
Comment:Allow a checkout of the very first (empty) version of a project.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 61ca4141ccb256025466e227d34385179783bad1
User & Date: drh 2010-08-18 17:27:25.000
References
2010-08-19
09:28 New ticket [dba59ec544] Cannot commit with --date-override. artifact: 5f344ea678 user: anonymous
2010-08-18
17:48 Closed ticket [5751755d47]: Initial check-in isn't usable plus 2 other changes artifact: 72441c1c4b user: bch
Context
2010-08-19
11:46
Output appropriate error messages and abort if the date argument to the --date-override option is malformed. Ticket [dba59ec54423f19] check-in: e0248776d3 user: drh tags: trunk
2010-08-18
17:27
Allow a checkout of the very first (empty) version of a project. check-in: 61ca4141cc user: drh tags: trunk
16:51
Take care to close the separate dbConfig database connection when shutting down. check-in: c6187a83a5 user: drh tags: trunk
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/update.c.
22
23
24
25
26
27
28
29


30
31
32
33
34
35
36
#include "update.h"
#include <assert.h>

/*
** Return true if artifact rid is a version
*/
int is_a_version(int rid){
  return db_exists("SELECT 1 FROM plink WHERE cid=%d", rid);


}

/*
** COMMAND: update
**
** Usage: %fossil update ?VERSION? ?FILES...?
**







|
>
>







22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#include "update.h"
#include <assert.h>

/*
** Return true if artifact rid is a version
*/
int is_a_version(int rid){
  return db_exists("SELECT 1 FROM plink WHERE cid=%d "
                   "UNION ALL SELECT 1 FROM plink WHERE pid=%d",
                    rid, rid);
}

/*
** COMMAND: update
**
** Usage: %fossil update ?VERSION? ?FILES...?
**