]> git.eshelyaron.com Git - emacs.git/commitdiff
(vc-version-backup-file-name): Revision names may be
authorStefan Monnier <monnier@iro.umontreal.ca>
Wed, 27 Dec 2006 16:25:42 +0000 (16:25 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Wed, 27 Dec 2006 16:25:42 +0000 (16:25 +0000)
composed of arbitrary characters (even /) in some systems.

lisp/vc-hooks.el

index b602d79383fcbb60b53d280c431937458a847eb7..7aae75c8a76440df57e91c28625abcddcd287760 100644 (file)
@@ -625,9 +625,10 @@ the user should be returned; if REGEXP is non-nil that means to return
 a regexp for matching all such backup files, regardless of the version."
   (if regexp
       (concat (regexp-quote (file-name-nondirectory file))
-              "\\.~[0-9.]+" (unless manual "\\.") "~")
+              "\\.~.+" (unless manual "\\.") "~")
     (expand-file-name (concat (file-name-nondirectory file)
-                              ".~" (or rev (vc-workfile-version file))
+                              ".~" (subst-char-in-string
+                                    ?/ ?_ (or rev (vc-workfile-version file)))
                               (unless manual ".") "~")
                       (file-name-directory file))))