Fossil SCM
Merge Arjen's documentation updates into trunk.
Commit
b0d1510578846f09120fc012f3761e4e5503a180
Parent
87fb21875a6ec9f…
2 files changed
+39
-21
+7
-7
+39
-21
| --- src/add.c | ||
| +++ src/add.c | ||
| @@ -212,21 +212,27 @@ | ||
| 212 | 212 | } |
| 213 | 213 | |
| 214 | 214 | /* |
| 215 | 215 | ** COMMAND: add |
| 216 | 216 | ** |
| 217 | -** Usage: %fossil add FILE... | |
| 218 | -** | |
| 219 | -** Make arrangements to add one or more files to the current checkout | |
| 220 | -** at the next commit. | |
| 221 | -** | |
| 222 | -** When adding files recursively, filenames that begin with "." are | |
| 223 | -** excluded by default. To include such files, add the "--dotfiles" | |
| 224 | -** option to the command-line. | |
| 225 | -** | |
| 226 | -** The --ignore option overrides the "ignore-glob" setting. See | |
| 227 | -** documentation on the "setting" command for further information. | |
| 217 | +** Usage: %fossil add ?OPTIONS? FILE1 ?FILE2 ...? | |
| 218 | +** | |
| 219 | +** Make arrangements to add one or more files or directories to the | |
| 220 | +** current checkout at the next commit. | |
| 221 | +** | |
| 222 | +** When adding files or directories recursively, filenames that begin | |
| 223 | +** with "." are excluded by default. To include such files, add | |
| 224 | +** the "--dotfiles" option to the command-line. | |
| 225 | +** | |
| 226 | +** The --ignore option specifies the patterns for files to be excluded, | |
| 227 | +** like *.o,*.obj,*.exe. If not specified, the "ignore-glob" setting is | |
| 228 | +** used. See ** documentation on the "settings" command for further | |
| 229 | +** information. | |
| 230 | +** | |
| 231 | +** | |
| 232 | +** SUMMARY: fossil add ?OPTIONS? FILE1 ?FILE2 ...? | |
| 233 | +** Options: --dotfiles, --ignore | |
| 228 | 234 | */ |
| 229 | 235 | void add_cmd(void){ |
| 230 | 236 | int i; |
| 231 | 237 | int vid; |
| 232 | 238 | const char *zIgnoreFlag; |
| @@ -340,18 +346,21 @@ | ||
| 340 | 346 | |
| 341 | 347 | /* |
| 342 | 348 | ** COMMAND: rm |
| 343 | 349 | ** COMMAND: delete |
| 344 | 350 | ** |
| 345 | -** Usage: %fossil rm FILE... | |
| 346 | -** or: %fossil delete FILE... | |
| 351 | +** Usage: %fossil rm FILE1 ?FILE2 ...? | |
| 352 | +** or: %fossil delete FILE1 ?FILE2 ...? | |
| 347 | 353 | ** |
| 348 | -** Remove one or more files from the tree. | |
| 354 | +** Remove one or more files or directories from the repository. | |
| 349 | 355 | ** |
| 350 | -** This command does not remove the files from disk. It just marks the | |
| 356 | +** This command does NOT remove the files from disk. It just marks the | |
| 351 | 357 | ** files as no longer being part of the project. In other words, future |
| 352 | 358 | ** changes to the named files will not be versioned. |
| 359 | +** | |
| 360 | +** SUMMARY: fossil rm FILE1 ?FILE2 ...? | |
| 361 | +** or: fossil delete FILE1 ?FILE2 ...? | |
| 353 | 362 | */ |
| 354 | 363 | void delete_cmd(void){ |
| 355 | 364 | int i; |
| 356 | 365 | int vid; |
| 357 | 366 | |
| @@ -382,11 +391,11 @@ | ||
| 382 | 391 | ** COMMAND: addremove |
| 383 | 392 | ** |
| 384 | 393 | ** Usage: %fossil addremove ?--dotfiles? ?--ignore GLOBPATTERN? ?--test? |
| 385 | 394 | ** |
| 386 | 395 | ** Do all necessary "add" and "rm" commands to synchronize the repository |
| 387 | -** with the content of the working checkout | |
| 396 | +** with the content of the working checkout: | |
| 388 | 397 | ** |
| 389 | 398 | ** * All files in the checkout but not in the repository (that is, |
| 390 | 399 | ** all files displayed using the "extra" command) are added as |
| 391 | 400 | ** if by the "add" command. |
| 392 | 401 | ** |
| @@ -399,15 +408,19 @@ | ||
| 399 | 408 | ** |
| 400 | 409 | ** Files and directories whose names begin with "." are ignored unless |
| 401 | 410 | ** the --dotfiles option is used. |
| 402 | 411 | ** |
| 403 | 412 | ** The --ignore option overrides the "ignore-glob" setting. See |
| 404 | -** documentation on the "setting" command for further information. | |
| 413 | +** documentation on the "settings" command for further information. | |
| 405 | 414 | ** |
| 406 | 415 | ** The --test option shows what would happen without actually doing anything. |
| 407 | 416 | ** |
| 408 | 417 | ** This command can be used to track third party software. |
| 418 | +** | |
| 419 | +** | |
| 420 | +** SUMMARY: fossil addremove | |
| 421 | +** Options: ?--dotfiles? ?--ignore GLOBPATTERN? ?--test? | |
| 409 | 422 | */ |
| 410 | 423 | void import_cmd(void){ |
| 411 | 424 | Blob path; |
| 412 | 425 | const char *zIgnoreFlag = find_option("ignore",0,1); |
| 413 | 426 | int allFlag = find_option("dotfiles",0,0)!=0; |
| @@ -436,11 +449,11 @@ | ||
| 436 | 449 | if( file_tree_name(g.zRepositoryName, &repo, 0) ){ |
| 437 | 450 | db_multi_exec("DELETE FROM sfile WHERE x=%B", &repo); |
| 438 | 451 | } |
| 439 | 452 | |
| 440 | 453 | /* step 1: search for extra files */ |
| 441 | - db_prepare(&q, | |
| 454 | + db_prepare(&q, | |
| 442 | 455 | "SELECT x, %Q || x FROM sfile" |
| 443 | 456 | " WHERE x NOT IN (%s)" |
| 444 | 457 | " AND NOT %s" |
| 445 | 458 | " ORDER BY 1", |
| 446 | 459 | g.zLocalRoot, |
| @@ -451,11 +464,11 @@ | ||
| 451 | 464 | add_one_file(db_column_text(&q, 1), vid, 0); |
| 452 | 465 | nAdd++; |
| 453 | 466 | } |
| 454 | 467 | db_finalize(&q); |
| 455 | 468 | /* step 2: search for missing files */ |
| 456 | - db_prepare(&q, | |
| 469 | + db_prepare(&q, | |
| 457 | 470 | "SELECT pathname,%Q || pathname,deleted FROM vfile" |
| 458 | 471 | " WHERE deleted!=1" |
| 459 | 472 | " ORDER BY 1", |
| 460 | 473 | g.zLocalRoot |
| 461 | 474 | ); |
| @@ -499,15 +512,20 @@ | ||
| 499 | 512 | ** COMMAND: rename |
| 500 | 513 | ** |
| 501 | 514 | ** Usage: %fossil mv|rename OLDNAME NEWNAME |
| 502 | 515 | ** or: %fossil mv|rename OLDNAME... DIR |
| 503 | 516 | ** |
| 504 | -** Move or rename one or more files within the tree | |
| 517 | +** Move or rename one or more files or directories within the repository tree. | |
| 518 | +** You can either rename a file or directory or move it to another subdirectory. | |
| 505 | 519 | ** |
| 506 | -** This command does not rename the files on disk. This command merely | |
| 520 | +** This command does NOT rename or move the files on disk. This command merely | |
| 507 | 521 | ** records the fact that filenames have changed so that appropriate notations |
| 508 | 522 | ** can be made at the next commit/checkin. |
| 523 | +** | |
| 524 | +** | |
| 525 | +** SUMMARY: fossil mv|rename OLDNAME NEWNAME | |
| 526 | +** or: fossil mv|rename OLDNAME... DIR | |
| 509 | 527 | */ |
| 510 | 528 | void mv_cmd(void){ |
| 511 | 529 | int i; |
| 512 | 530 | int vid; |
| 513 | 531 | char *zDest; |
| 514 | 532 |
| --- src/add.c | |
| +++ src/add.c | |
| @@ -212,21 +212,27 @@ | |
| 212 | } |
| 213 | |
| 214 | /* |
| 215 | ** COMMAND: add |
| 216 | ** |
| 217 | ** Usage: %fossil add FILE... |
| 218 | ** |
| 219 | ** Make arrangements to add one or more files to the current checkout |
| 220 | ** at the next commit. |
| 221 | ** |
| 222 | ** When adding files recursively, filenames that begin with "." are |
| 223 | ** excluded by default. To include such files, add the "--dotfiles" |
| 224 | ** option to the command-line. |
| 225 | ** |
| 226 | ** The --ignore option overrides the "ignore-glob" setting. See |
| 227 | ** documentation on the "setting" command for further information. |
| 228 | */ |
| 229 | void add_cmd(void){ |
| 230 | int i; |
| 231 | int vid; |
| 232 | const char *zIgnoreFlag; |
| @@ -340,18 +346,21 @@ | |
| 340 | |
| 341 | /* |
| 342 | ** COMMAND: rm |
| 343 | ** COMMAND: delete |
| 344 | ** |
| 345 | ** Usage: %fossil rm FILE... |
| 346 | ** or: %fossil delete FILE... |
| 347 | ** |
| 348 | ** Remove one or more files from the tree. |
| 349 | ** |
| 350 | ** This command does not remove the files from disk. It just marks the |
| 351 | ** files as no longer being part of the project. In other words, future |
| 352 | ** changes to the named files will not be versioned. |
| 353 | */ |
| 354 | void delete_cmd(void){ |
| 355 | int i; |
| 356 | int vid; |
| 357 | |
| @@ -382,11 +391,11 @@ | |
| 382 | ** COMMAND: addremove |
| 383 | ** |
| 384 | ** Usage: %fossil addremove ?--dotfiles? ?--ignore GLOBPATTERN? ?--test? |
| 385 | ** |
| 386 | ** Do all necessary "add" and "rm" commands to synchronize the repository |
| 387 | ** with the content of the working checkout |
| 388 | ** |
| 389 | ** * All files in the checkout but not in the repository (that is, |
| 390 | ** all files displayed using the "extra" command) are added as |
| 391 | ** if by the "add" command. |
| 392 | ** |
| @@ -399,15 +408,19 @@ | |
| 399 | ** |
| 400 | ** Files and directories whose names begin with "." are ignored unless |
| 401 | ** the --dotfiles option is used. |
| 402 | ** |
| 403 | ** The --ignore option overrides the "ignore-glob" setting. See |
| 404 | ** documentation on the "setting" command for further information. |
| 405 | ** |
| 406 | ** The --test option shows what would happen without actually doing anything. |
| 407 | ** |
| 408 | ** This command can be used to track third party software. |
| 409 | */ |
| 410 | void import_cmd(void){ |
| 411 | Blob path; |
| 412 | const char *zIgnoreFlag = find_option("ignore",0,1); |
| 413 | int allFlag = find_option("dotfiles",0,0)!=0; |
| @@ -436,11 +449,11 @@ | |
| 436 | if( file_tree_name(g.zRepositoryName, &repo, 0) ){ |
| 437 | db_multi_exec("DELETE FROM sfile WHERE x=%B", &repo); |
| 438 | } |
| 439 | |
| 440 | /* step 1: search for extra files */ |
| 441 | db_prepare(&q, |
| 442 | "SELECT x, %Q || x FROM sfile" |
| 443 | " WHERE x NOT IN (%s)" |
| 444 | " AND NOT %s" |
| 445 | " ORDER BY 1", |
| 446 | g.zLocalRoot, |
| @@ -451,11 +464,11 @@ | |
| 451 | add_one_file(db_column_text(&q, 1), vid, 0); |
| 452 | nAdd++; |
| 453 | } |
| 454 | db_finalize(&q); |
| 455 | /* step 2: search for missing files */ |
| 456 | db_prepare(&q, |
| 457 | "SELECT pathname,%Q || pathname,deleted FROM vfile" |
| 458 | " WHERE deleted!=1" |
| 459 | " ORDER BY 1", |
| 460 | g.zLocalRoot |
| 461 | ); |
| @@ -499,15 +512,20 @@ | |
| 499 | ** COMMAND: rename |
| 500 | ** |
| 501 | ** Usage: %fossil mv|rename OLDNAME NEWNAME |
| 502 | ** or: %fossil mv|rename OLDNAME... DIR |
| 503 | ** |
| 504 | ** Move or rename one or more files within the tree |
| 505 | ** |
| 506 | ** This command does not rename the files on disk. This command merely |
| 507 | ** records the fact that filenames have changed so that appropriate notations |
| 508 | ** can be made at the next commit/checkin. |
| 509 | */ |
| 510 | void mv_cmd(void){ |
| 511 | int i; |
| 512 | int vid; |
| 513 | char *zDest; |
| 514 |
| --- src/add.c | |
| +++ src/add.c | |
| @@ -212,21 +212,27 @@ | |
| 212 | } |
| 213 | |
| 214 | /* |
| 215 | ** COMMAND: add |
| 216 | ** |
| 217 | ** Usage: %fossil add ?OPTIONS? FILE1 ?FILE2 ...? |
| 218 | ** |
| 219 | ** Make arrangements to add one or more files or directories to the |
| 220 | ** current checkout at the next commit. |
| 221 | ** |
| 222 | ** When adding files or directories recursively, filenames that begin |
| 223 | ** with "." are excluded by default. To include such files, add |
| 224 | ** the "--dotfiles" option to the command-line. |
| 225 | ** |
| 226 | ** The --ignore option specifies the patterns for files to be excluded, |
| 227 | ** like *.o,*.obj,*.exe. If not specified, the "ignore-glob" setting is |
| 228 | ** used. See ** documentation on the "settings" command for further |
| 229 | ** information. |
| 230 | ** |
| 231 | ** |
| 232 | ** SUMMARY: fossil add ?OPTIONS? FILE1 ?FILE2 ...? |
| 233 | ** Options: --dotfiles, --ignore |
| 234 | */ |
| 235 | void add_cmd(void){ |
| 236 | int i; |
| 237 | int vid; |
| 238 | const char *zIgnoreFlag; |
| @@ -340,18 +346,21 @@ | |
| 346 | |
| 347 | /* |
| 348 | ** COMMAND: rm |
| 349 | ** COMMAND: delete |
| 350 | ** |
| 351 | ** Usage: %fossil rm FILE1 ?FILE2 ...? |
| 352 | ** or: %fossil delete FILE1 ?FILE2 ...? |
| 353 | ** |
| 354 | ** Remove one or more files or directories from the repository. |
| 355 | ** |
| 356 | ** This command does NOT remove the files from disk. It just marks the |
| 357 | ** files as no longer being part of the project. In other words, future |
| 358 | ** changes to the named files will not be versioned. |
| 359 | ** |
| 360 | ** SUMMARY: fossil rm FILE1 ?FILE2 ...? |
| 361 | ** or: fossil delete FILE1 ?FILE2 ...? |
| 362 | */ |
| 363 | void delete_cmd(void){ |
| 364 | int i; |
| 365 | int vid; |
| 366 | |
| @@ -382,11 +391,11 @@ | |
| 391 | ** COMMAND: addremove |
| 392 | ** |
| 393 | ** Usage: %fossil addremove ?--dotfiles? ?--ignore GLOBPATTERN? ?--test? |
| 394 | ** |
| 395 | ** Do all necessary "add" and "rm" commands to synchronize the repository |
| 396 | ** with the content of the working checkout: |
| 397 | ** |
| 398 | ** * All files in the checkout but not in the repository (that is, |
| 399 | ** all files displayed using the "extra" command) are added as |
| 400 | ** if by the "add" command. |
| 401 | ** |
| @@ -399,15 +408,19 @@ | |
| 408 | ** |
| 409 | ** Files and directories whose names begin with "." are ignored unless |
| 410 | ** the --dotfiles option is used. |
| 411 | ** |
| 412 | ** The --ignore option overrides the "ignore-glob" setting. See |
| 413 | ** documentation on the "settings" command for further information. |
| 414 | ** |
| 415 | ** The --test option shows what would happen without actually doing anything. |
| 416 | ** |
| 417 | ** This command can be used to track third party software. |
| 418 | ** |
| 419 | ** |
| 420 | ** SUMMARY: fossil addremove |
| 421 | ** Options: ?--dotfiles? ?--ignore GLOBPATTERN? ?--test? |
| 422 | */ |
| 423 | void import_cmd(void){ |
| 424 | Blob path; |
| 425 | const char *zIgnoreFlag = find_option("ignore",0,1); |
| 426 | int allFlag = find_option("dotfiles",0,0)!=0; |
| @@ -436,11 +449,11 @@ | |
| 449 | if( file_tree_name(g.zRepositoryName, &repo, 0) ){ |
| 450 | db_multi_exec("DELETE FROM sfile WHERE x=%B", &repo); |
| 451 | } |
| 452 | |
| 453 | /* step 1: search for extra files */ |
| 454 | db_prepare(&q, |
| 455 | "SELECT x, %Q || x FROM sfile" |
| 456 | " WHERE x NOT IN (%s)" |
| 457 | " AND NOT %s" |
| 458 | " ORDER BY 1", |
| 459 | g.zLocalRoot, |
| @@ -451,11 +464,11 @@ | |
| 464 | add_one_file(db_column_text(&q, 1), vid, 0); |
| 465 | nAdd++; |
| 466 | } |
| 467 | db_finalize(&q); |
| 468 | /* step 2: search for missing files */ |
| 469 | db_prepare(&q, |
| 470 | "SELECT pathname,%Q || pathname,deleted FROM vfile" |
| 471 | " WHERE deleted!=1" |
| 472 | " ORDER BY 1", |
| 473 | g.zLocalRoot |
| 474 | ); |
| @@ -499,15 +512,20 @@ | |
| 512 | ** COMMAND: rename |
| 513 | ** |
| 514 | ** Usage: %fossil mv|rename OLDNAME NEWNAME |
| 515 | ** or: %fossil mv|rename OLDNAME... DIR |
| 516 | ** |
| 517 | ** Move or rename one or more files or directories within the repository tree. |
| 518 | ** You can either rename a file or directory or move it to another subdirectory. |
| 519 | ** |
| 520 | ** This command does NOT rename or move the files on disk. This command merely |
| 521 | ** records the fact that filenames have changed so that appropriate notations |
| 522 | ** can be made at the next commit/checkin. |
| 523 | ** |
| 524 | ** |
| 525 | ** SUMMARY: fossil mv|rename OLDNAME NEWNAME |
| 526 | ** or: fossil mv|rename OLDNAME... DIR |
| 527 | */ |
| 528 | void mv_cmd(void){ |
| 529 | int i; |
| 530 | int vid; |
| 531 | char *zDest; |
| 532 |
+7
-7
| --- src/merge.c | ||
| +++ src/merge.c | ||
| @@ -26,13 +26,13 @@ | ||
| 26 | 26 | /* |
| 27 | 27 | ** COMMAND: merge |
| 28 | 28 | ** |
| 29 | 29 | ** Usage: %fossil merge [--cherrypick] [--backout] VERSION |
| 30 | 30 | ** |
| 31 | -** The argument is a version that should be merged into the current | |
| 32 | -** checkout. All changes from VERSION back to the nearest common | |
| 33 | -** ancestor are merged. Except, if either of the --cherrypick or | |
| 31 | +** The argument VERSION is a version that should be merged into the | |
| 32 | +** current checkout. All changes from VERSION back to the nearest | |
| 33 | +** common ancestor are merged. Except, if either of the --cherrypick or | |
| 34 | 34 | ** --backout options are used only the changes associated with the |
| 35 | 35 | ** single check-in VERSION are merged. The --backout option causes |
| 36 | 36 | ** the changes associated with VERSION to be removed from the current |
| 37 | 37 | ** checkout rather than added. |
| 38 | 38 | ** |
| @@ -283,11 +283,11 @@ | ||
| 283 | 283 | db_finalize(&q); |
| 284 | 284 | |
| 285 | 285 | /* |
| 286 | 286 | ** Add to V files that are not in V or P but are in M |
| 287 | 287 | */ |
| 288 | - db_prepare(&q, | |
| 288 | + db_prepare(&q, | |
| 289 | 289 | "SELECT idm, rowid, fnm FROM fv AS x" |
| 290 | 290 | " WHERE idp=0 AND idv=0 AND idm>0" |
| 291 | 291 | ); |
| 292 | 292 | while( db_step(&q)==SQLITE_ROW ){ |
| 293 | 293 | int idm = db_column_int(&q, 0); |
| @@ -307,13 +307,13 @@ | ||
| 307 | 307 | undo_save(zName); |
| 308 | 308 | vfile_to_disk(0, idm, 0, 0); |
| 309 | 309 | } |
| 310 | 310 | } |
| 311 | 311 | db_finalize(&q); |
| 312 | - | |
| 312 | + | |
| 313 | 313 | /* |
| 314 | - ** Find files that have changed from P->M but not P->V. | |
| 314 | + ** Find files that have changed from P->M but not P->V. | |
| 315 | 315 | ** Copy the M content over into V. |
| 316 | 316 | */ |
| 317 | 317 | db_prepare(&q, |
| 318 | 318 | "SELECT idv, ridm, fn FROM fv" |
| 319 | 319 | " WHERE idp>0 AND idv>0 AND idm>0" |
| @@ -457,11 +457,11 @@ | ||
| 457 | 457 | /* Report on conflicts |
| 458 | 458 | */ |
| 459 | 459 | if( nConflict && !nochangeFlag ){ |
| 460 | 460 | printf("WARNING: merge conflicts - see messages above for details.\n"); |
| 461 | 461 | } |
| 462 | - | |
| 462 | + | |
| 463 | 463 | /* |
| 464 | 464 | ** Clean up the mid and pid VFILE entries. Then commit the changes. |
| 465 | 465 | */ |
| 466 | 466 | db_multi_exec("DELETE FROM vfile WHERE vid!=%d", vid); |
| 467 | 467 | if( !pickFlag ){ |
| 468 | 468 |
| --- src/merge.c | |
| +++ src/merge.c | |
| @@ -26,13 +26,13 @@ | |
| 26 | /* |
| 27 | ** COMMAND: merge |
| 28 | ** |
| 29 | ** Usage: %fossil merge [--cherrypick] [--backout] VERSION |
| 30 | ** |
| 31 | ** The argument is a version that should be merged into the current |
| 32 | ** checkout. All changes from VERSION back to the nearest common |
| 33 | ** ancestor are merged. Except, if either of the --cherrypick or |
| 34 | ** --backout options are used only the changes associated with the |
| 35 | ** single check-in VERSION are merged. The --backout option causes |
| 36 | ** the changes associated with VERSION to be removed from the current |
| 37 | ** checkout rather than added. |
| 38 | ** |
| @@ -283,11 +283,11 @@ | |
| 283 | db_finalize(&q); |
| 284 | |
| 285 | /* |
| 286 | ** Add to V files that are not in V or P but are in M |
| 287 | */ |
| 288 | db_prepare(&q, |
| 289 | "SELECT idm, rowid, fnm FROM fv AS x" |
| 290 | " WHERE idp=0 AND idv=0 AND idm>0" |
| 291 | ); |
| 292 | while( db_step(&q)==SQLITE_ROW ){ |
| 293 | int idm = db_column_int(&q, 0); |
| @@ -307,13 +307,13 @@ | |
| 307 | undo_save(zName); |
| 308 | vfile_to_disk(0, idm, 0, 0); |
| 309 | } |
| 310 | } |
| 311 | db_finalize(&q); |
| 312 | |
| 313 | /* |
| 314 | ** Find files that have changed from P->M but not P->V. |
| 315 | ** Copy the M content over into V. |
| 316 | */ |
| 317 | db_prepare(&q, |
| 318 | "SELECT idv, ridm, fn FROM fv" |
| 319 | " WHERE idp>0 AND idv>0 AND idm>0" |
| @@ -457,11 +457,11 @@ | |
| 457 | /* Report on conflicts |
| 458 | */ |
| 459 | if( nConflict && !nochangeFlag ){ |
| 460 | printf("WARNING: merge conflicts - see messages above for details.\n"); |
| 461 | } |
| 462 | |
| 463 | /* |
| 464 | ** Clean up the mid and pid VFILE entries. Then commit the changes. |
| 465 | */ |
| 466 | db_multi_exec("DELETE FROM vfile WHERE vid!=%d", vid); |
| 467 | if( !pickFlag ){ |
| 468 |
| --- src/merge.c | |
| +++ src/merge.c | |
| @@ -26,13 +26,13 @@ | |
| 26 | /* |
| 27 | ** COMMAND: merge |
| 28 | ** |
| 29 | ** Usage: %fossil merge [--cherrypick] [--backout] VERSION |
| 30 | ** |
| 31 | ** The argument VERSION is a version that should be merged into the |
| 32 | ** current checkout. All changes from VERSION back to the nearest |
| 33 | ** common ancestor are merged. Except, if either of the --cherrypick or |
| 34 | ** --backout options are used only the changes associated with the |
| 35 | ** single check-in VERSION are merged. The --backout option causes |
| 36 | ** the changes associated with VERSION to be removed from the current |
| 37 | ** checkout rather than added. |
| 38 | ** |
| @@ -283,11 +283,11 @@ | |
| 283 | db_finalize(&q); |
| 284 | |
| 285 | /* |
| 286 | ** Add to V files that are not in V or P but are in M |
| 287 | */ |
| 288 | db_prepare(&q, |
| 289 | "SELECT idm, rowid, fnm FROM fv AS x" |
| 290 | " WHERE idp=0 AND idv=0 AND idm>0" |
| 291 | ); |
| 292 | while( db_step(&q)==SQLITE_ROW ){ |
| 293 | int idm = db_column_int(&q, 0); |
| @@ -307,13 +307,13 @@ | |
| 307 | undo_save(zName); |
| 308 | vfile_to_disk(0, idm, 0, 0); |
| 309 | } |
| 310 | } |
| 311 | db_finalize(&q); |
| 312 | |
| 313 | /* |
| 314 | ** Find files that have changed from P->M but not P->V. |
| 315 | ** Copy the M content over into V. |
| 316 | */ |
| 317 | db_prepare(&q, |
| 318 | "SELECT idv, ridm, fn FROM fv" |
| 319 | " WHERE idp>0 AND idv>0 AND idm>0" |
| @@ -457,11 +457,11 @@ | |
| 457 | /* Report on conflicts |
| 458 | */ |
| 459 | if( nConflict && !nochangeFlag ){ |
| 460 | printf("WARNING: merge conflicts - see messages above for details.\n"); |
| 461 | } |
| 462 | |
| 463 | /* |
| 464 | ** Clean up the mid and pid VFILE entries. Then commit the changes. |
| 465 | */ |
| 466 | db_multi_exec("DELETE FROM vfile WHERE vid!=%d", vid); |
| 467 | if( !pickFlag ){ |
| 468 |