Next: , Previous: Access methods, Up: Top

3 Getting a repository

— Function: DARCS:GET-REPO in-path out-path &key query

Get a local copy of the tree at in-path, and write it to out-path. in-path may be an HTTP URL or a local directory. out-path must be a local nonexistent directory.

If query is true, ask for a range of patches to download and apply.

Getting a copy of a repository involves getting all the patches from that repository, and applying them one by one to the local tree. This can be a lot of data, if the repository has long history. Darcs has a concept of “checkpoints”, which cl-darcs doesn't yet support.

The location of the repository is saved (in _darcs/prefs/defaultrepo), and is used as default repository to pull from. See Pulling new patches.