Hot answers tagged

3 votes

Emacs for better SVN workflow

These are from my limited knowledge and research. Options for minimal functionality inside the svn project directory emacs -nw -f vc-root-diff -> C-c C-e for opening multiple diff in ediff. I ...
  • 221
2 votes
Accepted

Is there a common way to open "svn-status" or "magit" depending on current buffers system?

Something like this: (defun open-status () (interactive) (if vc-mode (if (string-match "^ Git" (substring-no-properties vc-mode)) (magit-status) (if (string-match "^ SVN" (...
  • 3,067
2 votes

Emacs for better SVN workflow

I use psvn.el. You will have to download and place this file into a folder which is in the search path of your Emacs: (add-to-list 'load-path "~/.emacs.d/lisp") Further you will have to compile this ...
2 votes

How to "svn revert <file>" with Emacs Version Control?

You can use M-x vc-revert. or use this function: (defun revert-svn() (interactive) (vc-revert) (revert-buffer t t)) (global-set-key (kbd "C-x v u") 'revert-svn)
  • 3,067
2 votes

Best package for SVN (Subversion)

The Foundation I work for also uses Subversion exclusively, since quite a few features they need would not be handled as easily using git (some of them: huge monorepos, centralised workflow, excellent ...
  • 1,670
2 votes

Best package for SVN (Subversion)

SVN is supported by Emacs' built-in version control system. I don't think there's anything comparable to magit for SVN, partly because git is much more capable than SVN, and partly because fewer and ...
  • 20.7k
1 vote
Accepted

Disable VC for SVN in exclusive-locking mode

You can override VC handled backends for specific file based on filename: (defun my/find-file-hook () (when (string-match-p "^svn-commit.*tmp$" (file-name-nondirectory (buffer-file-name))) (set ...
  • 2,195
1 vote
Accepted

Is there a way for ediff to compare SVN changes in the head to my local copy?

You can use the command ediff-revision, see the the manual for details.
  • 1,713
1 vote

Is there a common way to open "svn-status" or "magit" depending on current buffers system?

I came up with something like this. (defun vc-status () (interactive) (let ((backend (vc-responsible-backend default-directory))) (cond ((equal 'Git backend) (magit-status)) ((equal ...
  • 811
1 vote

How to "svn revert <file>" with Emacs Version Control?

As @djangoliv has mentioned, M-x vc-revert works (C-x v u on Emacs 24.5.1). When doing it over a file on a *vc-dir* buffer (opened by vc-directory command), another buffer with the differences is ...
  • 2,099

Only top scored, non community-wiki answers of a minimum length are eligible