Fossil

Diff
Login

Diff

Differences From Artifact [6c349a3312]:

To Artifact [618268c1ce]:


130
131
132
133
134
135
136
137


138
139
140
141
142
143
144
130
131
132
133
134
135
136

137
138
139
140
141
142
143
144
145







-
+
+







** Usage: %fossil pull ?URL? ?options?
**
** Pull changes from a remote repository into the local repository.
** Use the "-R REPO" or "--repository REPO" command-line options
** to specify an alternative repository file.
**
** If the URL is not specified, then the URL from the most recent
** <a>clone</a>, <a>push</a>, pull, <a>remote-url</a>, or <a>sync</a> command is used.
** <a>clone</a>, <a>push</a>, pull, <a>remote-url</a>, or <a>sync</a> command
** is used.
**
** The URL specified normally becomes the new "remote-url" used for
** subsequent push, pull, and sync operations.  However, the "--once"
** command-line option makes the URL a one-time-use URL that is not
** saved.
**
** See also: <a>clone</a>, <a>push</a>, <A>sync</a>, <a>remote-url</a>
154
155
156
157
158
159
160
161


162
163
164
165
166



167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183


184
185
186
187
188
189
190
191


192
193
194
195
196



197
198
199
200
201
202
203
204
205
206
207
208
209
210
211


212
213
214
215
216



217
218
219
220
221
222
223
155
156
157
158
159
160
161

162
163
164
165



166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183


184
185
186
187
188
189
190
191
192

193
194
195
196



197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212


213
214
215
216



217
218
219
220
221
222
223
224
225
226







-
+
+


-
-
-
+
+
+















-
-
+
+







-
+
+


-
-
-
+
+
+













-
-
+
+


-
-
-
+
+
+







** Usage: %fossil push ?URL? ?options?
**
** Push changes in the local repository over into a remote repository.
** Use the "-R REPO" or "--repository REPO" command-line options
** to specify an alternative repository file.
**
** If the URL is not specified, then the URL from the most recent
** <a>clone</a>, push, <a>pull</a>, <a>remote-url</a>, or <a>sync</a> command is used.
** <a>clone</a>, push, <a>pull</a>, <a>remote-url</a>, or <a>sync</a> command
** is used.
**
** The URL specified normally becomes the new "remote-url" used for
** subsequent <a>push</a>, <a>pull</a>, and <a>sync</a> operations.  However, the "--once"
** command-line option makes the URL a one-time-use URL that is not
** saved.
** subsequent <a>push</a>, <a>pull</a>, and <a>sync</a> operations.  However,
** the "--once" command-line option makes the URL a one-time-use URL that is
** not saved.
**
** See also: <a>clone</a>, <a>pull</a>, <a>sync</a>, <a>remote-url</a>
*/
void push_cmd(void){
  process_sync_args();
  client_sync(1,0,0,0,0);
}


/*
** COMMAND: sync
**
** Usage: %fossil sync ?URL? ?options?
**
** Synchronize the local repository with a remote repository.  This is
** the equivalent of running both "<a>push</a>" and "<a>pull</a>" at the same time.
** Use the "-R REPO" or "--repository REPO" command-line options
** the equivalent of running both "<a>push</a>" and "<a>pull</a>" at the same
** time. Use the "-R REPO" or "--repository REPO" command-line options
** to specify an alternative repository file.
**
** If a user-id and password are required, specify them as follows:
**
**     http://userid:password@www.domain.com:1234/path
**
** If the URL is not specified, then the URL from the most recent successful
** <a>clone</a>, <a>push</a>, <a>pull</a>, <a>remote-url</a>, or sync command is used.
** <a>clone</a>, <a>push</a>, <a>pull</a>, <a>remote-url</a>, or sync command
** is used.
**
** The URL specified normally becomes the new "remote-url" used for
** subsequent <a>push</a>, <a>pull</a>, and <a>sync</a> operations.  However, the "--once"
** command-line option makes the URL a one-time-use URL that is not
** saved.
** subsequent <a>push</a>, <a>pull</a>, and <a>sync</a> operations.  However,
** the "--once" command-line option makes the URL a one-time-use URL that is
** not saved.
**
** See also:  <a>clone</a>, <a>push</a>, <a>pull</a>, <a>remote-url</a>
*/
void sync_cmd(void){
  int syncFlags = process_sync_args();
  client_sync(1,1,0,syncFlags,0);
}

/*
** COMMAND: remote-url
**
** Usage: %fossil remote-url ?URL|off?
**
** Query and/or change the default server URL used by the "<a>pull</a>", "<a>push</a>",
** and "<a>sync</a>" commands.
** Query and/or change the default server URL used by the "<a>pull</a>",
** "<a>push</a>", and "<a>sync</a>" commands.
**
** The remote-url is set automatically by a "<a>clone</a>" command or by any
** "<a>sync</a>", "<a>push</a>", or "<a>pull</a>" command that specifies an explicit URL.
** The default remote-url is used by auto-syncing and by "<a>sync</a>", "<a>push</a>",
** "<a>pull</a>" that omit the server URL.
** "<a>sync</a>", "<a>push</a>", or "<a>pull</a>" command that specifies an
** explicit URL. The default remote-url is used by auto-syncing and by
** "<a>sync</a>", "<a>push</a>", "<a>pull</a>" that omit the server URL.
**
** See also: <a>clone</a>, <a>push</a>, <a>pull</a>, <a>sync</a>
*/
void remote_url_cmd(void){
  char *zUrl;
  db_find_and_open_repository(1);
  if( g.argc!=2 && g.argc!=3 ){