Changeset View
Changeset View
Standalone View
Standalone View
plugins/subversion/kdevsvncpp/client.hpp
Show First 20 Lines • Show All 151 Lines • ▼ Show 20 Line(s) | 111 | public: | |||
---|---|---|---|---|---|
152 | * @return vector with Status entries. | 152 | * @return vector with Status entries. | ||
153 | */ | 153 | */ | ||
154 | StatusEntries | 154 | StatusEntries | ||
155 | status(const char * path, | 155 | status(const char * path, | ||
156 | const bool descend = false, | 156 | const bool descend = false, | ||
157 | const bool get_all = true, | 157 | const bool get_all = true, | ||
158 | const bool update = false, | 158 | const bool update = false, | ||
159 | const bool no_ignore = false, | 159 | const bool no_ignore = false, | ||
160 | const bool ignore_externals = false) throw(ClientException); | 160 | const bool ignore_externals = false); | ||
161 | 161 | | |||
162 | /** | 162 | /** | ||
163 | * Enumerates all files/dirs matchin the parameter @a filter | 163 | * Enumerates all files/dirs matchin the parameter @a filter | ||
164 | * at @a path and returns them in the vector @a statusEntries | 164 | * at @a path and returns them in the vector @a statusEntries | ||
165 | * | 165 | * | ||
166 | * Throws an exception if an error occurs | 166 | * Throws an exception if an error occurs | ||
167 | * | 167 | * | ||
168 | * @since New in 0.9.7 | 168 | * @since New in 0.9.7 | ||
169 | * | 169 | * | ||
170 | * @param path Path to explore. | 170 | * @param path Path to explore. | ||
171 | * @param filter use a combination of the @a SHOW_* values to filter the | 171 | * @param filter use a combination of the @a SHOW_* values to filter the | ||
172 | * output | 172 | * output | ||
173 | * @param descend Recurse into subdirectories if existant. | 173 | * @param descend Recurse into subdirectories if existant. | ||
174 | * @param update Query the repository for updates. | 174 | * @param update Query the repository for updates. | ||
175 | * @param entries vector with Status entries | 175 | * @param entries vector with Status entries | ||
176 | * | 176 | * | ||
177 | * @return current revnum | 177 | * @return current revnum | ||
178 | */ | 178 | */ | ||
179 | svn_revnum_t | 179 | svn_revnum_t | ||
180 | status(const char * path, | 180 | status(const char * path, | ||
181 | const StatusFilter & filter, | 181 | const StatusFilter & filter, | ||
182 | const bool descend, | 182 | const bool descend, | ||
183 | const bool update, | 183 | const bool update, | ||
184 | StatusEntries & entries) throw(ClientException); | 184 | StatusEntries & entries); | ||
185 | 185 | | |||
186 | 186 | | |||
187 | /** | 187 | /** | ||
188 | * Executes a revision checkout. | 188 | * Executes a revision checkout. | ||
189 | * @param moduleName name of the module to checkout. | 189 | * @param moduleName name of the module to checkout. | ||
190 | * @param destPath destination directory for checkout. | 190 | * @param destPath destination directory for checkout. | ||
191 | * @param revision the revision number to checkout. If the number is -1 | 191 | * @param revision the revision number to checkout. If the number is -1 | ||
192 | * then it will checkout the latest revision. | 192 | * then it will checkout the latest revision. | ||
193 | * @param recurse whether you want it to checkout files recursively. | 193 | * @param recurse whether you want it to checkout files recursively. | ||
194 | * @param ignore_externals whether you want get external resources too. | 194 | * @param ignore_externals whether you want get external resources too. | ||
195 | * @param peg_revision peg revision to checkout, by default current. | 195 | * @param peg_revision peg revision to checkout, by default current. | ||
196 | * @exception ClientException | 196 | * @exception ClientException | ||
197 | */ | 197 | */ | ||
198 | svn_revnum_t | 198 | svn_revnum_t | ||
199 | checkout(const char * moduleName, | 199 | checkout(const char * moduleName, | ||
200 | const Path & destPath, | 200 | const Path & destPath, | ||
201 | const Revision & revision, | 201 | const Revision & revision, | ||
202 | bool recurse, | 202 | bool recurse, | ||
203 | bool ignore_externals = false, | 203 | bool ignore_externals = false, | ||
204 | const Revision & peg_revision = Revision::UNSPECIFIED) throw(ClientException); | 204 | const Revision & peg_revision = Revision::UNSPECIFIED); | ||
205 | 205 | | |||
206 | /** | 206 | /** | ||
207 | * relocate wc @a from to @a to | 207 | * relocate wc @a from to @a to | ||
208 | * @exception ClientException | 208 | * @exception ClientException | ||
209 | */ | 209 | */ | ||
210 | void | 210 | void | ||
211 | relocate(const Path & path, const char *from_url, | 211 | relocate(const Path & path, const char *from_url, | ||
212 | const char *to_url, bool recurse) throw(ClientException); | 212 | const char *to_url, bool recurse); | ||
213 | 213 | | |||
214 | /** | 214 | /** | ||
215 | * Sets a single file for deletion. | 215 | * Sets a single file for deletion. | ||
216 | * @exception ClientException | 216 | * @exception ClientException | ||
217 | */ | 217 | */ | ||
218 | void | 218 | void | ||
219 | remove(const Path & path, bool force) throw(ClientException); | 219 | remove(const Path & path, bool force); | ||
220 | 220 | | |||
221 | /** | 221 | /** | ||
222 | * Sets files for deletion. | 222 | * Sets files for deletion. | ||
223 | * | 223 | * | ||
224 | * @param targets targets to delete | 224 | * @param targets targets to delete | ||
225 | * @param force force if files are locally modified | 225 | * @param force force if files are locally modified | ||
226 | * @exception ClientException | 226 | * @exception ClientException | ||
227 | */ | 227 | */ | ||
228 | void | 228 | void | ||
229 | remove(const Targets & targets, | 229 | remove(const Targets & targets, | ||
230 | bool force) throw(ClientException); | 230 | bool force); | ||
231 | 231 | | |||
232 | /** | 232 | /** | ||
233 | * Sets files to lock. | 233 | * Sets files to lock. | ||
234 | * | 234 | * | ||
235 | * @param targets targets to lock | 235 | * @param targets targets to lock | ||
236 | * @param force force setting/stealing lock | 236 | * @param force force setting/stealing lock | ||
237 | * @param comment writing comment about lock setting is necessary | 237 | * @param comment writing comment about lock setting is necessary | ||
238 | * @exception ClientException | 238 | * @exception ClientException | ||
239 | */ | 239 | */ | ||
240 | void | 240 | void | ||
241 | lock(const Targets & targets, bool force, | 241 | lock(const Targets & targets, bool force, | ||
242 | const char * comment) throw(ClientException); | 242 | const char * comment); | ||
243 | 243 | | |||
244 | /** | 244 | /** | ||
245 | * Sets files to unlock. | 245 | * Sets files to unlock. | ||
246 | * | 246 | * | ||
247 | * @param targets targets to unlock | 247 | * @param targets targets to unlock | ||
248 | * @param force force unlock even if lock belongs to another user | 248 | * @param force force unlock even if lock belongs to another user | ||
249 | * @exception ClientException | 249 | * @exception ClientException | ||
250 | */ | 250 | */ | ||
251 | void | 251 | void | ||
252 | unlock(const Targets & targets, bool force) throw(ClientException); | 252 | unlock(const Targets & targets, bool force); | ||
253 | 253 | | |||
254 | /** | 254 | /** | ||
255 | * Reverts a couple of files to a pristiner state. | 255 | * Reverts a couple of files to a pristiner state. | ||
256 | * @exception ClientException | 256 | * @exception ClientException | ||
257 | */ | 257 | */ | ||
258 | void | 258 | void | ||
259 | revert(const Targets & targets, bool recurse) throw(ClientException); | 259 | revert(const Targets & targets, bool recurse); | ||
260 | 260 | | |||
261 | /** | 261 | /** | ||
262 | * Adds a file to the repository. | 262 | * Adds a file to the repository. | ||
263 | * @exception ClientException | 263 | * @exception ClientException | ||
264 | */ | 264 | */ | ||
265 | void | 265 | void | ||
266 | add(const Path & path, bool recurse) throw(ClientException); | 266 | add(const Path & path, bool recurse); | ||
267 | 267 | | |||
268 | /** | 268 | /** | ||
269 | * Updates the file or directory. | 269 | * Updates the file or directory. | ||
270 | * @param targets target files. | 270 | * @param targets target files. | ||
271 | * @param revision the revision number to checkout. | 271 | * @param revision the revision number to checkout. | ||
272 | * Revision::HEAD will checkout the | 272 | * Revision::HEAD will checkout the | ||
273 | * latest revision. | 273 | * latest revision. | ||
274 | * @param recurse recursively update. | 274 | * @param recurse recursively update. | ||
275 | * @param ignore_externals don't affect external destinations. | 275 | * @param ignore_externals don't affect external destinations. | ||
276 | * @exception ClientException | 276 | * @exception ClientException | ||
277 | * | 277 | * | ||
278 | * @return a vector with resulting revisions | 278 | * @return a vector with resulting revisions | ||
279 | */ | 279 | */ | ||
280 | std::vector<svn_revnum_t> | 280 | std::vector<svn_revnum_t> | ||
281 | update(const Targets & targets, | 281 | update(const Targets & targets, | ||
282 | const Revision & revision, | 282 | const Revision & revision, | ||
283 | bool recurse, | 283 | bool recurse, | ||
284 | bool ignore_externals) throw(ClientException); | 284 | bool ignore_externals); | ||
285 | 285 | | |||
286 | svn_revnum_t | 286 | svn_revnum_t | ||
287 | update(const Path & path, | 287 | update(const Path & path, | ||
288 | const Revision & revision, | 288 | const Revision & revision, | ||
289 | bool recurse, | 289 | bool recurse, | ||
290 | bool ignore_externals) throw(ClientException); | 290 | bool ignore_externals); | ||
291 | 291 | | |||
292 | /** | 292 | /** | ||
293 | * Retrieves the contents for a specific @a revision of | 293 | * Retrieves the contents for a specific @a revision of | ||
294 | * a @a path | 294 | * a @a path | ||
295 | * | 295 | * | ||
296 | * @param path path of file or directory | 296 | * @param path path of file or directory | ||
297 | * @param revision revision to retrieve | 297 | * @param revision revision to retrieve | ||
298 | * @param peg_revision peg revision to retrieve, | 298 | * @param peg_revision peg revision to retrieve, | ||
299 | * by default is the latest one | 299 | * by default is the latest one | ||
300 | * @return contents of the file | 300 | * @return contents of the file | ||
301 | */ | 301 | */ | ||
302 | std::string | 302 | std::string | ||
303 | cat(const Path & path, | 303 | cat(const Path & path, | ||
304 | const Revision & revision, | 304 | const Revision & revision, | ||
305 | const Revision & peg_revision = Revision::UNSPECIFIED) throw(ClientException); | 305 | const Revision & peg_revision = Revision::UNSPECIFIED); | ||
306 | 306 | | |||
307 | 307 | | |||
308 | /** | 308 | /** | ||
309 | * Retrieves the contents for a specific @a revision of | 309 | * Retrieves the contents for a specific @a revision of | ||
310 | * a @a path and saves it to the destination file @a dstPath. | 310 | * a @a path and saves it to the destination file @a dstPath. | ||
311 | * | 311 | * | ||
312 | * If @a dstPath is empty (""), then this path will be | 312 | * If @a dstPath is empty (""), then this path will be | ||
313 | * constructed from the temporary directory on this system | 313 | * constructed from the temporary directory on this system | ||
314 | * and the filename in @a path. @a dstPath will still have | 314 | * and the filename in @a path. @a dstPath will still have | ||
315 | * the file extension from @a path and uniqueness of the | 315 | * the file extension from @a path and uniqueness of the | ||
316 | * temporary filename will be ensured. | 316 | * temporary filename will be ensured. | ||
317 | * | 317 | * | ||
318 | * @param dstPath Filename in which the contents | 318 | * @param dstPath Filename in which the contents | ||
319 | * of the file file will be safed. | 319 | * of the file file will be safed. | ||
320 | * @param path path or url | 320 | * @param path path or url | ||
321 | * @param peg_revision peg revision to retrieve, by default is the latest one | 321 | * @param peg_revision peg revision to retrieve, by default is the latest one | ||
322 | */ | 322 | */ | ||
323 | void | 323 | void | ||
324 | get(Path & dstPath, | 324 | get(Path & dstPath, | ||
325 | const Path & path, | 325 | const Path & path, | ||
326 | const Revision & revision, | 326 | const Revision & revision, | ||
327 | const Revision & peg_revision = Revision::UNSPECIFIED) throw(ClientException); | 327 | const Revision & peg_revision = Revision::UNSPECIFIED); | ||
328 | 328 | | |||
329 | 329 | | |||
330 | /** | 330 | /** | ||
331 | * Retrieves the contents for a specific @a revision of | 331 | * Retrieves the contents for a specific @a revision of | ||
332 | * a @a path | 332 | * a @a path | ||
333 | * | 333 | * | ||
334 | * @param path path of file or directory | 334 | * @param path path of file or directory | ||
335 | * @param revisionStart revision to retrieve | 335 | * @param revisionStart revision to retrieve | ||
336 | * @param revisionEnd revision to retrieve | 336 | * @param revisionEnd revision to retrieve | ||
337 | * @return contents of the file | 337 | * @return contents of the file | ||
338 | */ | 338 | */ | ||
339 | AnnotatedFile * | 339 | AnnotatedFile * | ||
340 | annotate(const Path & path, | 340 | annotate(const Path & path, | ||
341 | const Revision & revisionStart, | 341 | const Revision & revisionStart, | ||
342 | const Revision & revisionEnd) throw(ClientException); | 342 | const Revision & revisionEnd); | ||
343 | 343 | | |||
344 | /** | 344 | /** | ||
345 | * Commits changes to the repository. This usually requires | 345 | * Commits changes to the repository. This usually requires | ||
346 | * authentication, see Auth. | 346 | * authentication, see Auth. | ||
347 | * @return Returns a long representing the revision. It returns a | 347 | * @return Returns a long representing the revision. It returns a | ||
348 | * -1 if the revision number is invalid. | 348 | * -1 if the revision number is invalid. | ||
349 | * @param targets files to commit. | 349 | * @param targets files to commit. | ||
350 | * @param message log message. | 350 | * @param message log message. | ||
351 | * @param recurse whether the operation should be done recursively. | 351 | * @param recurse whether the operation should be done recursively. | ||
352 | * @param keep_locks whether to preserve locks or to release them after commit | 352 | * @param keep_locks whether to preserve locks or to release them after commit | ||
353 | * @exception ClientException | 353 | * @exception ClientException | ||
354 | */ | 354 | */ | ||
355 | svn_revnum_t | 355 | svn_revnum_t | ||
356 | commit(const Targets & targets, | 356 | commit(const Targets & targets, | ||
357 | const char * message, | 357 | const char * message, | ||
358 | bool recurse, | 358 | bool recurse, | ||
359 | bool keep_locks = false) throw(ClientException); | 359 | bool keep_locks = false); | ||
360 | 360 | | |||
361 | /** | 361 | /** | ||
362 | * Copies a versioned file with the history preserved. | 362 | * Copies a versioned file with the history preserved. | ||
363 | * @exception ClientException | 363 | * @exception ClientException | ||
364 | */ | 364 | */ | ||
365 | void | 365 | void | ||
366 | copy(const Path & srcPath, | 366 | copy(const Path & srcPath, | ||
367 | const Revision & srcRevision, | 367 | const Revision & srcRevision, | ||
368 | const Path & destPath) throw(ClientException); | 368 | const Path & destPath); | ||
369 | 369 | | |||
370 | /** | 370 | /** | ||
371 | * Moves or renames a file. | 371 | * Moves or renames a file. | ||
372 | * @exception ClientException | 372 | * @exception ClientException | ||
373 | */ | 373 | */ | ||
374 | void | 374 | void | ||
375 | move(const Path & srcPath, | 375 | move(const Path & srcPath, | ||
376 | const Revision & srcRevision, | 376 | const Revision & srcRevision, | ||
377 | const Path & destPath, | 377 | const Path & destPath, | ||
378 | bool force) throw(ClientException); | 378 | bool force); | ||
379 | 379 | | |||
380 | /** | 380 | /** | ||
381 | * Creates a directory directly in a repository or creates a | 381 | * Creates a directory directly in a repository or creates a | ||
382 | * directory on disk and schedules it for addition. If <i>path</i> | 382 | * directory on disk and schedules it for addition. If <i>path</i> | ||
383 | * is a URL then authentication is usually required, see Auth. | 383 | * is a URL then authentication is usually required, see Auth. | ||
384 | * | 384 | * | ||
385 | * @exception ClientException | 385 | * @exception ClientException | ||
386 | */ | 386 | */ | ||
387 | void | 387 | void | ||
388 | mkdir(const Path & path) throw(ClientException); | 388 | mkdir(const Path & path); | ||
389 | 389 | | |||
390 | void | 390 | void | ||
391 | mkdir(const Targets & targets) throw(ClientException); | 391 | mkdir(const Targets & targets); | ||
392 | 392 | | |||
393 | /** | 393 | /** | ||
394 | * Recursively cleans up a local directory, finishing any | 394 | * Recursively cleans up a local directory, finishing any | ||
395 | * incomplete operations, removing lockfiles, etc. | 395 | * incomplete operations, removing lockfiles, etc. | ||
396 | * @param path a local directory. | 396 | * @param path a local directory. | ||
397 | * @exception ClientException | 397 | * @exception ClientException | ||
398 | */ | 398 | */ | ||
399 | void | 399 | void | ||
400 | cleanup(const Path & path) throw(ClientException); | 400 | cleanup(const Path & path); | ||
401 | 401 | | |||
402 | /** | 402 | /** | ||
403 | * Removes the 'conflicted' state on a file. | 403 | * Removes the 'conflicted' state on a file. | ||
404 | * @exception ClientException | 404 | * @exception ClientException | ||
405 | */ | 405 | */ | ||
406 | void | 406 | void | ||
407 | resolved(const Path & path, bool recurse) throw(ClientException); | 407 | resolved(const Path & path, bool recurse); | ||
408 | 408 | | |||
409 | /** | 409 | /** | ||
410 | * Export into file or directory TO_PATH from local or remote FROM_PATH | 410 | * Export into file or directory TO_PATH from local or remote FROM_PATH | ||
411 | * @param from_path path to import | 411 | * @param from_path path to import | ||
412 | * @param to_path where to import | 412 | * @param to_path where to import | ||
413 | * @param revision revision of files in source repository or working copy | 413 | * @param revision revision of files in source repository or working copy | ||
414 | * @param overwrite overwrite existing files in to_path | 414 | * @param overwrite overwrite existing files in to_path | ||
415 | * @param ignore_externals whether to ignore external sources in from_path | 415 | * @param ignore_externals whether to ignore external sources in from_path | ||
416 | * @param native_eol which EOL to use when exporting, usually different for | 416 | * @param native_eol which EOL to use when exporting, usually different for | ||
417 | * different OSs | 417 | * different OSs | ||
418 | * @exception ClientException | 418 | * @exception ClientException | ||
419 | */ | 419 | */ | ||
420 | void | 420 | void | ||
421 | doExport(const Path & from_path, | 421 | doExport(const Path & from_path, | ||
422 | const Path & to_path, | 422 | const Path & to_path, | ||
423 | const Revision & revision, | 423 | const Revision & revision, | ||
424 | bool overwrite = false, | 424 | bool overwrite = false, | ||
425 | const Revision & peg_revision = Revision::UNSPECIFIED, | 425 | const Revision & peg_revision = Revision::UNSPECIFIED, | ||
426 | bool ignore_externals = false, | 426 | bool ignore_externals = false, | ||
427 | bool recurse = true, | 427 | bool recurse = true, | ||
428 | const char * native_eol = NULL) throw(ClientException); | 428 | const char * native_eol = NULL); | ||
429 | 429 | | |||
430 | /** | 430 | /** | ||
431 | * Update local copy to mirror a new url. This excapsulates the | 431 | * Update local copy to mirror a new url. This excapsulates the | ||
432 | * svn_client_switch() client method. | 432 | * svn_client_switch() client method. | ||
433 | * @exception ClientException | 433 | * @exception ClientException | ||
434 | */ | 434 | */ | ||
435 | svn_revnum_t | 435 | svn_revnum_t | ||
436 | doSwitch(const Path & path, const char * url, | 436 | doSwitch(const Path & path, const char * url, | ||
437 | const Revision & revision, | 437 | const Revision & revision, | ||
438 | bool recurse) throw(ClientException); | 438 | bool recurse); | ||
439 | 439 | | |||
440 | /** | 440 | /** | ||
441 | * Import file or directory PATH into repository directory URL at | 441 | * Import file or directory PATH into repository directory URL at | ||
442 | * head. This usually requires authentication, see Auth. | 442 | * head. This usually requires authentication, see Auth. | ||
443 | * @param path path to import | 443 | * @param path path to import | ||
444 | * @param message log message. | 444 | * @param message log message. | ||
445 | * @exception ClientException | 445 | * @exception ClientException | ||
446 | */ | 446 | */ | ||
447 | void | 447 | void | ||
448 | import(const Path & path, | 448 | import(const Path & path, | ||
449 | const char * url, | 449 | const char * url, | ||
450 | const char * message, | 450 | const char * message, | ||
451 | bool recurse) throw(ClientException); | 451 | bool recurse); | ||
452 | void | 452 | void | ||
453 | import(const Path & path, | 453 | import(const Path & path, | ||
454 | const Path & url, | 454 | const Path & url, | ||
455 | const char * message, | 455 | const char * message, | ||
456 | bool recurse) throw(ClientException); | 456 | bool recurse); | ||
457 | 457 | | |||
458 | 458 | | |||
459 | /** | 459 | /** | ||
460 | * Merge changes from two paths into a new local path. | 460 | * Merge changes from two paths into a new local path. | ||
461 | * @exception ClientException | 461 | * @exception ClientException | ||
462 | */ | 462 | */ | ||
463 | void | 463 | void | ||
464 | merge(const Path & path1, const Revision & revision1, | 464 | merge(const Path & path1, const Revision & revision1, | ||
465 | const Path & path2, const Revision & revision2, | 465 | const Path & path2, const Revision & revision2, | ||
466 | const Path & localPath, bool force, | 466 | const Path & localPath, bool force, | ||
467 | bool recurse, | 467 | bool recurse, | ||
468 | bool notice_ancestry = false, | 468 | bool notice_ancestry = false, | ||
469 | bool dry_run = false) throw(ClientException); | 469 | bool dry_run = false); | ||
470 | 470 | | |||
471 | 471 | | |||
472 | /** | 472 | /** | ||
473 | * retrieve information about the given path | 473 | * retrieve information about the given path | ||
474 | * or URL | 474 | * or URL | ||
475 | * | 475 | * | ||
476 | * @see Client::status | 476 | * @see Client::status | ||
477 | * @see Info | 477 | * @see Info | ||
478 | */ | 478 | */ | ||
479 | InfoVector | 479 | InfoVector | ||
480 | info(const Path & pathOrUrl, | 480 | info(const Path & pathOrUrl, | ||
481 | bool recurse=false, | 481 | bool recurse=false, | ||
482 | const Revision & revision = Revision::UNSPECIFIED, | 482 | const Revision & revision = Revision::UNSPECIFIED, | ||
483 | const Revision & pegRevision = Revision::UNSPECIFIED) throw(ClientException); | 483 | const Revision & pegRevision = Revision::UNSPECIFIED); | ||
484 | 484 | | |||
485 | 485 | | |||
486 | /** | 486 | /** | ||
487 | * Retrieve log information for the given path | 487 | * Retrieve log information for the given path | ||
488 | * Loads the log messages result set. The first | 488 | * Loads the log messages result set. The first | ||
489 | * entry is the youngest revision. | 489 | * entry is the youngest revision. | ||
490 | * | 490 | * | ||
491 | * You can use the constants Revision::START and | 491 | * You can use the constants Revision::START and | ||
492 | * Revision::HEAD | 492 | * Revision::HEAD | ||
493 | 493 | | |||
494 | * @return a vector with log entries | 494 | * @return a vector with log entries | ||
495 | */ | 495 | */ | ||
496 | const LogEntries * | 496 | const LogEntries * | ||
497 | log(const char * path, | 497 | log(const char * path, | ||
498 | const Revision & revisionStart, | 498 | const Revision & revisionStart, | ||
499 | const Revision & revisionEnd, | 499 | const Revision & revisionEnd, | ||
500 | bool discoverChangedPaths = false, | 500 | bool discoverChangedPaths = false, | ||
501 | bool strictNodeHistory = true) throw(ClientException); | 501 | bool strictNodeHistory = true); | ||
502 | 502 | | |||
503 | /** | 503 | /** | ||
504 | * Produce diff output which describes the delta between | 504 | * Produce diff output which describes the delta between | ||
505 | * @a path/@a revision1 and @a path/@a revision2. @a path | 505 | * @a path/@a revision1 and @a path/@a revision2. @a path | ||
506 | * can be either a working-copy path or a URL. | 506 | * can be either a working-copy path or a URL. | ||
507 | * | 507 | * | ||
508 | * A ClientException will be thrown if either @a revision1 or | 508 | * A ClientException will be thrown if either @a revision1 or | ||
509 | * @a revision2 has an `unspecified' or unrecognized `kind'. | 509 | * @a revision2 has an `unspecified' or unrecognized `kind'. | ||
Show All 11 Lines | |||||
521 | * on deleted files. | 521 | * on deleted files. | ||
522 | * @return delta between the files | 522 | * @return delta between the files | ||
523 | * @exception ClientException | 523 | * @exception ClientException | ||
524 | */ | 524 | */ | ||
525 | std::string | 525 | std::string | ||
526 | diff(const Path & tmpPath, const Path & path, | 526 | diff(const Path & tmpPath, const Path & path, | ||
527 | const Revision & revision1, const Revision & revision2, | 527 | const Revision & revision1, const Revision & revision2, | ||
528 | const bool recurse, const bool ignoreAncestry, | 528 | const bool recurse, const bool ignoreAncestry, | ||
529 | const bool noDiffDeleted) throw(ClientException); | 529 | const bool noDiffDeleted); | ||
530 | 530 | | |||
531 | /** | 531 | /** | ||
532 | * Produce diff output which describes the delta between | 532 | * Produce diff output which describes the delta between | ||
533 | * @a path1/@a revision1 and @a path2/@a revision2. @a path1, | 533 | * @a path1/@a revision1 and @a path2/@a revision2. @a path1, | ||
534 | * @a path2 can be either a working-copy path or a URL. | 534 | * @a path2 can be either a working-copy path or a URL. | ||
535 | * | 535 | * | ||
536 | * A ClientException will be thrown if either @a revision1 or | 536 | * A ClientException will be thrown if either @a revision1 or | ||
537 | * @a revision2 has an `unspecified' or unrecognized `kind'. | 537 | * @a revision2 has an `unspecified' or unrecognized `kind'. | ||
Show All 12 Lines | |||||
550 | * on deleted files. | 550 | * on deleted files. | ||
551 | * @return delta between the files | 551 | * @return delta between the files | ||
552 | * @exception ClientException | 552 | * @exception ClientException | ||
553 | */ | 553 | */ | ||
554 | std::string | 554 | std::string | ||
555 | diff(const Path & tmpPath, const Path & path1, const Path & path2, | 555 | diff(const Path & tmpPath, const Path & path1, const Path & path2, | ||
556 | const Revision & revision1, const Revision & revision2, | 556 | const Revision & revision1, const Revision & revision2, | ||
557 | const bool recurse, const bool ignoreAncestry, | 557 | const bool recurse, const bool ignoreAncestry, | ||
558 | const bool noDiffDeleted) throw(ClientException); | 558 | const bool noDiffDeleted); | ||
559 | 559 | | |||
560 | /** | 560 | /** | ||
561 | * Produce diff output which describes the delta of | 561 | * Produce diff output which describes the delta of | ||
562 | * @a path/@a pegRevision between @a revision1 and @a revision2. | 562 | * @a path/@a pegRevision between @a revision1 and @a revision2. | ||
563 | * @a path can be either a working-copy path or a URL. | 563 | * @a path can be either a working-copy path or a URL. | ||
564 | * | 564 | * | ||
565 | * A ClientException will be thrown if either @a revision1 or | 565 | * A ClientException will be thrown if either @a revision1 or | ||
566 | * @a revision2 has an `unspecified' or unrecognized `kind'. | 566 | * @a revision2 has an `unspecified' or unrecognized `kind'. | ||
Show All 13 Lines | |||||
580 | * @return delta between the files | 580 | * @return delta between the files | ||
581 | * @exception ClientException | 581 | * @exception ClientException | ||
582 | */ | 582 | */ | ||
583 | std::string | 583 | std::string | ||
584 | diff(const Path & tmpPath, const Path & path, | 584 | diff(const Path & tmpPath, const Path & path, | ||
585 | const Revision & pegRevision, const Revision & revision1, | 585 | const Revision & pegRevision, const Revision & revision1, | ||
586 | const Revision & revision2, const bool recurse, | 586 | const Revision & revision2, const bool recurse, | ||
587 | const bool ignoreAncestry, const bool noDiffDeleted) | 587 | const bool ignoreAncestry, const bool noDiffDeleted) | ||
588 | throw(ClientException); | 588 | ; | ||
589 | 589 | | |||
590 | /** | 590 | /** | ||
591 | * lists entries in @a pathOrUrl no matter whether local or | 591 | * lists entries in @a pathOrUrl no matter whether local or | ||
592 | * repository | 592 | * repository | ||
593 | * | 593 | * | ||
594 | * @return a vector of directory entries, each with | 594 | * @return a vector of directory entries, each with | ||
595 | * a relative path (only filename) | 595 | * a relative path (only filename) | ||
596 | */ | 596 | */ | ||
597 | DirEntries | 597 | DirEntries | ||
598 | list(const char * pathOrUrl, | 598 | list(const char * pathOrUrl, | ||
599 | svn_opt_revision_t * revision, | 599 | svn_opt_revision_t * revision, | ||
600 | bool recurse) throw(ClientException); | 600 | bool recurse); | ||
601 | 601 | | |||
602 | /** | 602 | /** | ||
603 | * lists properties in @a path no matter whether local or | 603 | * lists properties in @a path no matter whether local or | ||
604 | * repository | 604 | * repository | ||
605 | * | 605 | * | ||
606 | * @return PropertiesList | 606 | * @return PropertiesList | ||
607 | */ | 607 | */ | ||
608 | PathPropertiesMapList | 608 | PathPropertiesMapList | ||
▲ Show 20 Lines • Show All 91 Lines • ▼ Show 20 Line(s) | |||||
700 | /** | 700 | /** | ||
701 | * Add a single file into ignore list. | 701 | * Add a single file into ignore list. | ||
702 | * | 702 | * | ||
703 | * @param path path to the file | 703 | * @param path path to the file | ||
704 | * @exception ClientException | 704 | * @exception ClientException | ||
705 | * @see svn:ignore property description | 705 | * @see svn:ignore property description | ||
706 | */ | 706 | */ | ||
707 | void | 707 | void | ||
708 | ignore(const Path & path) throw(ClientException); | 708 | ignore(const Path & path); | ||
709 | 709 | | |||
710 | /** | 710 | /** | ||
711 | * Add files into ignore list. | 711 | * Add files into ignore list. | ||
712 | * | 712 | * | ||
713 | * @param targets targets to treat as ignored | 713 | * @param targets targets to treat as ignored | ||
714 | * @exception ClientException | 714 | * @exception ClientException | ||
715 | * @see svn:ignore property description | 715 | * @see svn:ignore property description | ||
716 | */ | 716 | */ | ||
717 | void | 717 | void | ||
718 | ignore(const Targets & targets) throw(ClientException); | 718 | ignore(const Targets & targets); | ||
719 | private: | 719 | private: | ||
720 | Context * m_context; | 720 | Context * m_context; | ||
721 | 721 | | |||
722 | /** | 722 | /** | ||
723 | * disallow assignment operator | 723 | * disallow assignment operator | ||
724 | */ | 724 | */ | ||
725 | Client & operator= (const Client &); | 725 | Client & operator= (const Client &); | ||
726 | 726 | | |||
Show All 13 Lines |