File: checkout.rs

package info (click to toggle)
rust-subversion 0.0.8-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 752 kB
  • sloc: makefile: 2
file content (12 lines) | stat: -rw-r--r-- 328 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
use subversion::client::CheckoutOptions;

fn main() {
    let mut ctx = subversion::client::Context::new().unwrap();

    ctx.checkout(
        "http://svn.apache.org/repos/asf/subversion/trunk/subversion/libsvn_client",
        std::path::Path::new("libsvn_client"),
        &CheckoutOptions::default(),
    )
    .unwrap();
}