Untuk mendapatkan copy pekerjaan Anda perlu melakukan checkout dari repositori.
Pilih suatu direktori dalam windows explorer dimana Anda ingin menempatkan copy pekerjaan Anda. Klik kanan untuk menampilkan menu konteks dan pilih perintah → , yang menampilkan kotak dialog berikut:
Jika Anda memasukan nama folder yang belum ada, maka direktori dengan nama itu akan dibuat.
In the default setting, the checkout menu item is not located in the TortoiseSVN submenu but is shown at the top explorer menu. TortoiseSVN commands that are not in the submenu have SVN
prepended:
You can choose the depth you want to checkout, which allows you to specify the depth of recursion into child folders. If you want just a few sections of a large tree, You can checkout the top level folder only, then update selected folders recursively.
Checkout the entire tree, including all child folders and sub-folders.
Checkout the specified directory, including all files and child folders, but do not populate the child folders.
Checkout the specified directory, including all files but do not checkout any child folders.
Checkout the directory only. Do not populate it with files or child folders.
Retain the depth specified in the working copy. This option is not used in the checkout dialog, but it is the default in all other dialogs which have a depth setting.
Used to reduce working copy depth after a folder has already been populated. This option is only available in the Update to revision dialog.
To easily select only the items you want for the checkout and force the resulting working copy to keep only those items, click the sparse checkout
. An update of such a working copy will not fetch the missing files and folders but only update what you already have in your working copy.
If you check out a sparse working copy (i.e., by choosing something other than fully recursive
for the checkout depth), you can easily add or remove sub-folders later using one of the following methods.
Right click on the checked out folder, then use → and select . This opens the same dialog that was available in the original checkout and allows you to select or deselect items to include in the checkout. This method is very flexible but can be slow as every item in the folder is updated individually.
Right click on the checked out folder, then use → to bring up the repository browser. Find the sub-folder you would like to add to your working copy, then use → .
In the check for modifications dialog, first shift click on the button . The dialog will show all the files and folders which are in the repository but which you have not checked out as remotely added
. Right click on the folder(s) you would like to add to your working copy, then use → .
This feature is very useful when you only want to checkout parts of a large tree, but you want the convenience of updating a single working copy. Suppose you have a large tree which has sub-folders Project01
to Project99
, and you only want to checkout Project03
, Project25
and Project76/SubProj
. Use these steps:
Checkout the parent folder with depth “Only this item” You now have an empty top level folder.
Select the new folder and use
→ to display the repository content.Right click on Project03
and → . Keep the default settings and click on . You now have that folder fully populated.
Repeat the same process for Project25
.
Navigate to Project76/SubProj
and do the same. This time note that the Project76
folder has no content except for SubProj
, which itself is fully populated. Subversion has created the intermediate folders for you without populating them.
Once you have checked out a working copy to a particular depth you can change that depth later to get more or less content using Make depth sticky checkbox.
→ . In that dialog, be sure to check thePre-1.5 servers do not understand the working copy depth request, so they cannot always deal with requests efficiently. The command will still work, but an older server may send all the data, leaving the client to filter out what is not required, which may mean a lot of network traffic. If possible you should upgrade your server to at least 1.5.
Jika proyek berisi referensi ke proyek eksternal yang tidak ingin Anda checked out dalam waktu yang sama, gunakan kotak centang Abaikan eksternal.
If Omit externals is checked, or if you wish to increase the depth value, you will have to perform updates to your working copy using → instead of → . The standard update will include all externals and keep the existing depth.
It is recommended that you check out only the trunk
part of the directory tree, or lower. If you specify the parent path of the directory tree in the URL then you might end up with a full hard disk since you will get a copy of the entire repository tree including every branch and tag of your project!
Ada kalanya Anda ingin membuat copy lokal tanpa direktori .svn
, contoh untuk membuat zipped tarball dari sumber Anda. Baca bagian bernama “Mengekspor suatu Copy Pekerjaan Subversion” untuk menemukan bagaimana cara melakukannya.