Fossil SCM

Allowing partial commit for merges not adding a parent to the checkin.

viriketo 2012-04-05 14:19 annotate_links
Commit a610b2567ff944eb27d80ee228249420dcd9acd4
1 file changed +3 -2
+3 -2
--- src/checkin.c
+++ src/checkin.c
@@ -1046,13 +1046,14 @@
10461046
** array is allocated to contain the "id" field from the vfile table
10471047
** for each file to be committed. Or, if aCommitFile is NULL, all files
10481048
** should be committed.
10491049
*/
10501050
select_commit_files();
1051
- isAMerge = db_exists("SELECT 1 FROM vmerge");
1051
+ /* id=0 means that it introduces a new parent */
1052
+ isAMerge = db_exists("SELECT 1 FROM vmerge WHERE id=0");
10521053
if( g.aCommitFile && isAMerge ){
1053
- fossil_fatal("cannot do a partial commit of a merge");
1054
+ fossil_fatal("cannot do a partial commit of a graph merge");
10541055
}
10551056
10561057
user_select();
10571058
/*
10581059
** Check that the user exists.
10591060
--- src/checkin.c
+++ src/checkin.c
@@ -1046,13 +1046,14 @@
1046 ** array is allocated to contain the "id" field from the vfile table
1047 ** for each file to be committed. Or, if aCommitFile is NULL, all files
1048 ** should be committed.
1049 */
1050 select_commit_files();
1051 isAMerge = db_exists("SELECT 1 FROM vmerge");
 
1052 if( g.aCommitFile && isAMerge ){
1053 fossil_fatal("cannot do a partial commit of a merge");
1054 }
1055
1056 user_select();
1057 /*
1058 ** Check that the user exists.
1059
--- src/checkin.c
+++ src/checkin.c
@@ -1046,13 +1046,14 @@
1046 ** array is allocated to contain the "id" field from the vfile table
1047 ** for each file to be committed. Or, if aCommitFile is NULL, all files
1048 ** should be committed.
1049 */
1050 select_commit_files();
1051 /* id=0 means that it introduces a new parent */
1052 isAMerge = db_exists("SELECT 1 FROM vmerge WHERE id=0");
1053 if( g.aCommitFile && isAMerge ){
1054 fossil_fatal("cannot do a partial commit of a graph merge");
1055 }
1056
1057 user_select();
1058 /*
1059 ** Check that the user exists.
1060

Keyboard Shortcuts

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