SubVersion, like other revision control systems starting with CVS, can manage groups of files and entire directory trees, rather than just one file at a time like preceding systems like RCS and CSSC. The design of Emacs’ VersionControl mode unfortunately only supports these single-file operations. PclCvs was the first Emacs mode to support aggregate operations on CVS files. The following are modes that can also operate on many files in a SubVersion repository.
You can find the very latest version at:
The above version has this note at the top “This version is currently not under svn control”, which means that it’s newer than HEAD of trunk:
In subversion 1.7 the format of the working copy was changed. Now there’s only one .svn subdirectory in the root of the project. Unfortunately
psvn expects each directory to have a .svn subdirectory.
In this post there’s a patch to update HEAD of trunk to work with this new format. But as this is not the latest version, I’ve created this psvn.el.patch to work with the latest version (timestamped “2012-03-26, 21:23:49”).
Also in subversion 1.7 the output of modified externals has changed to include the full path rather the relative one, this confuses psvn. I’ve used a pre-parse hook to put output back into the expected format. If you don’t use externals or edit them you don’t need this.
(add-hook 'svn-pre-parse-status-hook 'svn-status-parse-fixup-externals-full-path) (defun svn-status-parse-fixup-externals-full-path () "SubVersion 1.17 adds the full path to externals; this pre-parse hook fixes it up to look like pre-1.17. Allowing psvn to continue as normal" (goto-char (point-min)) (let (( search-string (file-truename default-directory) )) (save-match-data (save-excursion (while (re-search-forward search-string (point-max) t) (replace-match "" nil nil) )))))
To check the status of a Subversion repository at
M-x svn-examine DIR RET
From inside the
‘C-u U REVISION RET’
For a more discursive treatment, see Ted Carnahan’s A Brief Introduction to Emacs psvn.
For more details, read the commentary section at the top of the
DavidKågedal? contributed a Subversion mode called dsvn, which is also influenced by pcvs and psvn. However, it can more efficiently work with large repositories containing many files and subdirectories.
Download it from the “contributed” section of the official Subversion repository: