Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>

WEEK'S BEST

  • BackTrack 5 R1
  • Wine 1.2.3 / 1.4 RC3
  • Mozilla Firefox 10...
  • Ubuntu 11.04
  • Angry Birds 1.1.2.1
  • Ubuntu 10.04.3 LTS
  • Linux Kernel 3.2.6
  • Ubuntu Manual 10.10
  • Adobe Flash Player...
  • Pidgin 2.10.1
  • Home > Linux > Programming > Libraries

    sven 0.8.1

    Download button

    No screenshots available
    Downloads: 376  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Ethan Jucovy & Jeff Hammel | More programs
    GPL / FREE
    November 12th, 2010, 01:54 GMT [view history]
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    sven description

    Document-oriented programming library that helps you put content in SVN

    sven is a document-oriented programming library that helps you put content in SVN.

    It requires `pysvn` which you will probably want to install system-wide.

    Basic usage:

        from sven.backend import SvnAccess
        client = SvnAccess(my_svn_server_repo_uri, my_local_checkout_dir)

        client.write('path/to/a/file/to/write', "Lovely content to be versioning!")
        client.write('path/to/another/file', "Aw shucks, I'll version this too..",
                     msg="My commit message", kind='text/plain')

        last_rev_int = client.last_changed_rev('path/to/another/file')

        last_rev_int = last_rev_int - 1
        from sven.exc import ResourceUnchanged
        try:
            earlier_version = client.read('path/to/another/file', rev=last_rev_int)
        except ResourceUnchanged, exc:
            last_rev_int = exc.last_change
            earlier_version = client.read('path/to/another/file', rev=last_rev_int)

        changelog = client.log('path/to/another/file', rev=last_rev_int)


    Each `.write` writes the content to the path on the local filesystem's checkout and then commits it to the repository. The workflow of one-write-per-commit is by design and is not likely to change soon; if you need a different workflow, you probably ought to just be using svn clients directly, anyway.

    Currently sven does not help you set up an svn client or server. It assumes you've already got a repository and checkout set up.

    The formats returned by some of its methods (particularly .log and .ls) are totally ad-hoc right now and strange; they'll probably be formalized sooner or later.


    Product's homepage

    Requirements:

    · Python
    · pysvn

    What's New in This Release: [ read full changelog ]

    · Fixed several embarrassing typos in the 0.4 release.

      


    TAGS:

    programming library | SVN content | Python library | Python | SVN | library



    HTML code for linking to this page:


    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM