Mengekspor suatu Copy Pekerjaan Subversion

Sometimes you may want a clean copy of your working tree without the .svn directory, e.g. to create a zipped tarball of your source, or to export to a web server. Instead of making a copy and then deleting the .svn directory manually, TortoiseSVN offers the command TortoiseSVNExport.... Exporting from a URL and exporting from a working copy are treated slightly differently.

Gambar 4.68. Dialog Ekspor-dari-URL

Dialog Ekspor-dari-URL


Jika Anda mengeksekusi perintah ini pada folder tidak berversi, TortoiseSVN akan mengasumsi bahwa folder terpilih adalah target dan membuka suatu dialog dimana Anda dapat mengisi URL dan revisi asal ekspor. Dialog ini memiliki pilihan-pilihan untuk mengekspor hanya folder level atas, untuk menghilangkan referensi eksternal, dan untuk menimpa gaya akhir baris pada file-file yang memiliki property svn:eol-style terset.

Tentu saja Anda juga dapat mengekspor secara langsung dari repositori. Gunakan Browser Repositori untuk pergi ke anak pohon yang relevan dalam repositori Anda kemudian gunakan Menu KonteksEkspor. Anda akan mendapatkan dialog Eskpor dari URL yang dijelaskan di atas.

If you execute this command on your working copy you'll be asked for a place to save the clean working copy without the .svn folder. By default, only the versioned files are exported, but you can use the Export unversioned files too checkbox to include any other unversioned files which exist in your WC and not in the repository. External references using svn:externals can be omitted if required.

Another way to export from a working copy is to right drag the working copy folder to another location and choose Context MenuSVN Export versioned items here or Context MenuSVN Export all items here or Context MenuSVN Export changed items here. The second option includes the unversioned files as well. The third option exports only modified items, but maintains the folder structure.

When exporting from a working copy, if the target folder already contains a folder of the same name as the one you are exporting, you will be given the option to overwrite the existing content, or to create a new folder with an automatically generated name, e.g. Target (1).

Exporting single files

The export dialog does not allow exporting single files, even though Subversion can.

To export single files with TortoiseSVN, you have to use the repository browser (bagian bernama “Browser Repositori”). Simply drag the file(s) you want to export from the repository browser to where you want them in the explorer, or use the context menu in the repository browser to export the files.

Exporting a Change Tree

If you want to export a copy of your project tree structure but containing only the files which have changed in a particular revision, or between any two revisions, use the compare revisions feature described in bagian bernama “Membandingkan Folder”.

If you want to export your working copy tree structure but containing only the files which are locally modified, refer to SVN Export changed items here above.

Removing a working copy from version control

Sometimes you have a working copy which you want to convert back to a normal folder without the .svn directory. All you need to do is delete the .svn directory from the working copy root.

Alternatively you can export the folder to itself. In Windows Explorer right drag the working copy root folder from the file pane onto itself in the folder pane. TortoiseSVN detects this special case and asks if you want to make the working copy unversioned. If you answer yes the control directory will be removed and you will have a plain, unversioned directory tree.