aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorStefan Monnier2006-12-27 16:25:42 +0000
committerStefan Monnier2006-12-27 16:25:42 +0000
commitd4c813e9885ac389910b6a2c29bf7369389cb92d (patch)
tree57fb1b5c8eeec6fcb5cda0830590f028c8370129 /lisp
parentbbc3424972bebd1406453dc4bbe41bc27ae4facb (diff)
downloademacs-d4c813e9885ac389910b6a2c29bf7369389cb92d.tar.gz
emacs-d4c813e9885ac389910b6a2c29bf7369389cb92d.zip
(vc-version-backup-file-name): Revision names may be
composed of arbitrary characters (even /) in some systems.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/vc-hooks.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/vc-hooks.el b/lisp/vc-hooks.el
index b602d79383f..7aae75c8a76 100644
--- a/lisp/vc-hooks.el
+++ b/lisp/vc-hooks.el
@@ -625,9 +625,10 @@ the user should be returned; if REGEXP is non-nil that means to return
625a regexp for matching all such backup files, regardless of the version." 625a regexp for matching all such backup files, regardless of the version."
626 (if regexp 626 (if regexp
627 (concat (regexp-quote (file-name-nondirectory file)) 627 (concat (regexp-quote (file-name-nondirectory file))
628 "\\.~[0-9.]+" (unless manual "\\.") "~") 628 "\\.~.+" (unless manual "\\.") "~")
629 (expand-file-name (concat (file-name-nondirectory file) 629 (expand-file-name (concat (file-name-nondirectory file)
630 ".~" (or rev (vc-workfile-version file)) 630 ".~" (subst-char-in-string
631 ?/ ?_ (or rev (vc-workfile-version file)))
631 (unless manual ".") "~") 632 (unless manual ".") "~")
632 (file-name-directory file)))) 633 (file-name-directory file))))
633 634