Code Monkey home page Code Monkey logo

subversion-clj's Introduction

subversion-clj Build Status

Clojure library for working with Subversion repositories

This code is initially extracted from beanstalkapp.com caching daemon[1]. It's a work in progress, so be careful with updates to new versions. The API may change, although I'm trying to keep thing compatible.

Based on SVNKit, tested with Subversion up to 1.7.9.

[1] Post in Beanstalk's blog about this

Install

Available from Clojars.

Usage

API documentation with some examples, generated by awesome Marginalia.

; This needs to be pointed to your repo, not working copy
(repo-for "file:///some/path/on-your/disk/repo")

; Connecting to remote repository with authentication
(repo-for "https://wildbit.svn.beanstalkapp.com/test-repo" "my-login" "my-password")

; Finds revision 100 in repo and returns it
(revision-for repo 100)

; Finds all revisions in the repo
(revisions-for repo)

; Finds youngest revision of the repo
(youngest repo)

; Gets UUID of the repo
(uuid repo)

Example of revision records

; Deleted directory
{:revision 7
:author "dsabanin"
:message "removed directory"
:changes [["dir" "some-directory" :delete]]}

; Edited files
{:revision 11
:author "dsabanin"
:message "editing files"
:changes [["file" "file-abc" :edit]
          ["file" "file-def" :edit]]}

; Copied directory
{:revision 6
:author "dsabanin"
:message "copied dir"
:changes [["dir" ["new-directory" "old-directory" 5] :copy]]}

Credits

SVNKit by TMate Software for a very powerful API to build upon.

License

Copyright (C) 2013 Dima Sabanin

Distributed under the Eclipse Public License, the same as Clojure.

subversion-clj's People

Contributors

dsabanin avatar

Watchers

Chemakh avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.