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

Overview
Comment:rename import to addremove
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | wolfgangHelpCmd
Files: files | file ages | folders
SHA1:7e65c703c0b0d9d22adf92a60181114addde4814
User & Date: wolfgang 2010-10-14 18:41:51
Context
2010-10-15
16:11
merge from trunk check-in: c1271793 user: wolfgang tags: wolfgangHelpCmd
2010-10-14
18:41
rename import to addremove check-in: 7e65c703 user: wolfgang tags: wolfgangHelpCmd
2010-10-13
19:40
added experimental IMPORT command (ticket [e0352240ad]) check-in: b37d5f25 user: wolfgang tags: wolfgangHelpCmd
Changes

Changes to src/add.c.

271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
    free(zName);
  }
  db_multi_exec("DELETE FROM vfile WHERE deleted AND rid=0");
  db_end_transaction(0);
}

/*
** COMMAND: import ?--dotfiles? ?--ignore GLOBPATTERN?
**
** Usage: %fossil import
**
** If used in a checkout, the current checkout file tree is synchronized
** with the repository:
**  * all files, existing in the file tree but not in the repository
**    (files displayed using the <a>extra</a> command)
**    are added to the repository - see also <a>add</a>
**  * all files, existing in the repository, not existing in the file tree







|

|







271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
    free(zName);
  }
  db_multi_exec("DELETE FROM vfile WHERE deleted AND rid=0");
  db_end_transaction(0);
}

/*
** COMMAND: addremove ?--dotfiles? ?--ignore GLOBPATTERN?
**
** Usage: %fossil addremove
**
** If used in a checkout, the current checkout file tree is synchronized
** with the repository:
**  * all files, existing in the file tree but not in the repository
**    (files displayed using the <a>extra</a> command)
**    are added to the repository - see also <a>add</a>
**  * all files, existing in the repository, not existing in the file tree

Changes to src/checkin.c.

100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
...
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
...
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
/*
** COMMAND: changes
**
** Usage: %fossil changes
**
** Report on the edit status of all files in the current checkout.
**
** See also the <a>status</a>, <a>extra</a> and <a>import</a> commands.
*/
void changes_cmd(void){
  Blob report;
  int vid;
  db_must_be_within_tree();
  blob_zero(&report);
  vid = db_lget_int("checkout", 0);
................................................................................
/*
** COMMAND: status
**
** Usage: %fossil status
**
** Report on the status of the current checkout.
**
** See also <a>import</a>
*/
void status_cmd(void){
  int vid;
  db_must_be_within_tree();
       /* 012345678901234 */
  printf("repository:   %s\n", db_lget("repository",""));
  printf("local-root:   %s\n", g.zLocalRoot);
................................................................................
**
** Print a list of all files in the source tree that are not part of
** the current checkout.  See also the <a>clean</a> command.
**
** Files and subdirectories whose names begin with "." are normally
** ignored but can be included by adding the --dotfiles option.
**
** See also <a>import</a>
*/
void extra_cmd(void){
  Blob path;
  Blob repo;
  Stmt q;
  int n;
  const char *zIgnoreFlag = find_option("ignore",0,1);







|







 







|







 







|







100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
...
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
...
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
/*
** COMMAND: changes
**
** Usage: %fossil changes
**
** Report on the edit status of all files in the current checkout.
**
** See also the <a>status</a>, <a>extra</a> and <a>addremove</a> commands.
*/
void changes_cmd(void){
  Blob report;
  int vid;
  db_must_be_within_tree();
  blob_zero(&report);
  vid = db_lget_int("checkout", 0);
................................................................................
/*
** COMMAND: status
**
** Usage: %fossil status
**
** Report on the status of the current checkout.
**
** See also <a>addremove</a>
*/
void status_cmd(void){
  int vid;
  db_must_be_within_tree();
       /* 012345678901234 */
  printf("repository:   %s\n", db_lget("repository",""));
  printf("local-root:   %s\n", g.zLocalRoot);
................................................................................
**
** Print a list of all files in the source tree that are not part of
** the current checkout.  See also the <a>clean</a> command.
**
** Files and subdirectories whose names begin with "." are normally
** ignored but can be included by adding the --dotfiles option.
**
** See also <a>addremove</a>
*/
void extra_cmd(void){
  Blob path;
  Blob repo;
  Stmt q;
  int n;
  const char *zIgnoreFlag = find_option("ignore",0,1);