{"id":20122859,"url":"https://github.com/freaky/rust-svnlook","last_synced_at":"2025-07-22T11:34:08.292Z","repository":{"id":142942560,"uuid":"162155497","full_name":"Freaky/rust-svnlook","owner":"Freaky","description":"A Rust interface to the svnlook command","archived":false,"fork":false,"pushed_at":"2020-04-18T03:21:17.000Z","size":44,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-13T07:32:08.882Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Freaky.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-12-17T15:59:01.000Z","updated_at":"2020-04-18T03:21:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"f3f5ea6e-db38-4e3f-a04d-b5d712c7016e","html_url":"https://github.com/Freaky/rust-svnlook","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Freaky%2Frust-svnlook","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Freaky%2Frust-svnlook/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Freaky%2Frust-svnlook/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Freaky%2Frust-svnlook/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Freaky","download_url":"https://codeload.github.com/Freaky/rust-svnlook/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241566172,"owners_count":19983260,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-13T19:41:30.926Z","updated_at":"2025-03-02T20:26:00.809Z","avatar_url":"https://github.com/Freaky.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NAME\n\n`rust-svnlook` - a Rusty interface to the `svnlook` command\n\n## SYNOPSIS\n\n```rust\n// Equivalent to svnlook::Svnlook::from(\"svnlook\").repository(\"/path/to/repo\");\nlet repo = svnlook::Repository::from(\"/path/to/repo\");\nlet latest = repo.youngest()?;\nfor rev in 1..latest {\n    let info = repo.info(rev)?;\n    let changed = repo.changed(rev)?;\n\n    println!(\n        \"Revision r{}, by {} at {}\",\n        info.revision, info.committer, info.date\n    );\n    for change in changed {\n        let change = change?;\n        print!(\"   {:.8}: \", change.status);\n\n        if let svnlook::SvnStatus::Copied(from) = change.status {\n            print!(\"{}@r{} -\u003e \", from.path.display(), from.revision);\n        }\n\n        println!(\"{}\", change.path.display());\n\n        println!(\"File contents:\");\n        println!(\"==============================\");\n        std::io::copy(\u0026mut repo.cat(rev, change.path)?, std::io::stdout())?;\n        println!(\"==============================\");\n    }\n\n    println!(\"Revision diff:\");\n    println!(\"==============================\");\n    std::io::copy(\u0026mut repo.diff().revision(rev).spawn()?, std::io::stdout())?;\n    println!(\"==============================\");\n}\n```\n\n## DESCRIPTION\n\n`rust-svnlook` provides a (hopefully) robust, typed, and convenient interface\nto examining a local Subversion repository using the `svnlook` command.\n\nThe `changed` command offers a streaming iterator, converting lines read from\nsvnlook into structs.  `diff` and `cat` provide a streaming `BufRead`\nimplementation.\n\nBoth check the command exits successfully on EOF to minimise the risk of missing\nan erroring command, and can be dropped safely at any point: unlike `Command`,\ntheir `Drop` implementation will reap the child process and silently swallow\nany error.\n\n## SEE ALSO\n\n* [Apache Subversion](https://subversion.apache.org/)\n* [svnlook](http://svnbook.red-bean.com/en/1.7/svn.ref.svnlook.html)\n* At least it isn't [CVS](https://www.nhs.uk/conditions/cyclical-vomiting-syndrome/)\n\n## AUTHORS\n\nThomas Hurst \u003ctom@hur.st\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffreaky%2Frust-svnlook","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffreaky%2Frust-svnlook","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffreaky%2Frust-svnlook/lists"}