• R/O
  • SSH
  • HTTPS

fsvn: Commit


Commit MetaInfo

Revision317 (tree)
Time2014-12-11 01:21:03
Authormhayashi1120

Log Message

small fix

Change Summary

Incremental Difference

--- trunk/fsvn-fs.el (revision 316)
+++ trunk/fsvn-fs.el (revision 317)
@@ -72,7 +72,8 @@
7272 (equal (nth 11 (file-attributes file1)) (nth 11 (file-attributes file2))))
7373
7474 (defun fsvn-file-exact-file-p (file)
75- (eq nil (car (file-attributes file))))
75+ (let ((attr (file-attributes file)))
76+ (and attr (eq nil (car attr)))))
7677
7778 (defun fsvn-file-exact-directory-p (file)
7879 ;; dired have this code.
--- trunk/ChangeLog (revision 316)
+++ trunk/ChangeLog (revision 317)
@@ -1,3 +1,8 @@
1+2014-12-10 Masahiro Hayashi (林 雅博) <mhayashi1120@gmail.com>
2+
3+ * Fix: Work around for peg (revisioned) filename.
4+ Maybe this is bug of subversion.
5+
16 2014-11-14 Masahiro Hayashi (林 雅博) <mhayashi1120@gmail.com>
27
38 * Fix: Creating log chain problem.
--- trunk/fsvn-proc.el (revision 316)
+++ trunk/fsvn-proc.el (revision 317)
@@ -337,7 +337,7 @@
337337 (when (setq cs (fsvn-config-repository-default-coding-system url))
338338 (throw 'guessed cs)))
339339 ((fsvn-url-local-p url)
340- (unless (file-directory-p url)
340+ (when (fsvn-file-exact-file-p url)
341341 (when (setq cs (fsvn-file-guessed-coding-system url))
342342 (throw 'guessed cs)))))))
343343 ((string-match "\\`--[a-zA-Z]" arg)
@@ -345,7 +345,7 @@
345345 ((not (fsvn-url-local-p arg)))
346346 (t
347347 (let ((file (fsvn-magic-create-name arg)))
348- (unless (file-directory-p file)
348+ (when (fsvn-file-exact-file-p file)
349349 (throw 'guessed (fsvn-file-guessed-coding-system file)))))))
350350 flatten-args)
351351 (default-value 'buffer-file-coding-system))))
--- trunk/fsvn-magic.el (revision 316)
+++ trunk/fsvn-magic.el (revision 317)
@@ -32,8 +32,15 @@
3232 (defconst fsvn-magic-file-name-regexp
3333 (let ((top "\\`/fsvn")
3434 tmp)
35- (concat top "@" "\\(" "HEAD" "\\|" "[0-9]+" "\\|"
36- fsvn-revision-date-regexp "\\)" "/")))
35+ (concat top "@"
36+ "\\("
37+ "HEAD"
38+ "\\|"
39+ "[0-9]+"
40+ "\\|"
41+ fsvn-revision-date-regexp
42+ "\\)"
43+ "/")))
3744
3845 (defconst fsvn-magic-handler-alist
3946 '(
--- trunk/fsvn-url.el (revision 316)
+++ trunk/fsvn-url.el (revision 317)
@@ -20,7 +20,13 @@
2020
2121
2222 (defconst fsvn-url-encoding fsvn-svn-common-coding-system)
23-(defconst fsvn-url-with-revision-regexp "\\`\\(.*\\)@\\([^/@]*\\)\\(@*\\)\\'")
23+(defconst fsvn-url-with-revision-regexp
24+ (concat
25+ "\\`"
26+ "\\(.*\\)@"
27+ "\\(" "[^/@]*" "\\)"
28+ "\\(@*\\)"
29+ "\\'"))
2430
2531 ;; url utility
2632
Show on old repository browser