Zim::FS::Subversion.3pm

Langue: en

Autres versions - même langue

Version: 2009-02-23 (debian - 07/07/09)

Section: 3 (Bibliothèques de fonctions)

NAME

Zim::FS::Subversion - Subversion version control

DESCRIPTION

This module handles a dir with Subversion version control for Zim.

It inherits from Zim::FS.

METHODS

Version Control Interface

"new(@PATH)"
Simple constructor for an existing Bazaar dir.
"init(@PATH)"
Constructor that will initialize a new Bazaar repository.
"commit(COMMENT)"
Commit a new version if there are any changes.
"revert(PATH, VERSION)"
Revert a file to a certain version. Discards all local edits. If version is undefined, assume latest saved version.
"status()"
Returns the `svn status` output.
"list_versions(PATH)"
Returns a list with version info. PATH is an optional argument, without this argument all versions are listed.
"cat_version(PATH, VERSION1)"
Returns the content of a file a a specific version.
"diff(PATH, VERSION1, VERSION2)"
Returns the diff between VERSION1 and VERSION2 for PATH or undef. If either version is undefined a diff versus the current (possibly un-commited) version is returned. If PATH is undefined a diff over the whole tree is returned.
"annotate(PATH, VERSION)"
Returns the annotated source for PATH or undef. VERSION is an optional argument; if VERSION is not defined the current (possibly un-commited) version is assumed.

Directory Interface

Overloaded methods:
"on_write_file(FILE, NEW)"
"touch()"

Private Interface

These methods are used to call the svn command.
"svn(@ARG)"
Run the "svn" command in the appropriate directory and return any output to STDOUT or STDERR. Will die on error with output in $@.

AUTHOR

Jaap Karssenberg (Pardus) <pardus@cpan.org>

Copyright (c) 2008 Jaap G Karssenberg. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

SEE ALSO