Fix minor bugs in vc.
* vc/vc-mtn.el (vc-mtn-root): * vc/vc-svn.el (vc-svn-registered): Make FILE absolute.
This commit is contained in:
parent
4fda400e58
commit
7d043d590d
3 changed files with 8 additions and 2 deletions
|
@ -1,10 +1,14 @@
|
|||
2014-12-05 Michael Albinus <michael.albinus@gmx.de>
|
||||
|
||||
* vc/vc-mtn.el (vc-mtn-root):
|
||||
* vc/vc-svn.el (vc-svn-registered): Make FILE absolute.
|
||||
|
||||
2014-12-05 Stefan Monnier <monnier@iro.umontreal.ca>
|
||||
|
||||
* progmodes/sh-script.el (sh-smie-sh-rules): Go back to the beginning
|
||||
of the whole pipe when indenting an opening keyword after a |.
|
||||
Generalize this treatment to opening keywords like "while" (bug#18031).
|
||||
|
||||
2014-12-05 Stefan Monnier <monnier@iro.umontreal.ca>
|
||||
2014-12-05 Stefan Monnier <monnier@iro.umontreal.ca>
|
||||
|
||||
* simple.el (newline): Place the hook buffer-locally,
|
||||
|
|
|
@ -79,7 +79,8 @@ If nil, use the value of `vc-diff-switches'. If t, use no switches."
|
|||
(defun vc-mtn-checkout-model (_files) 'implicit)
|
||||
|
||||
(defun vc-mtn-root (file)
|
||||
(setq file (if (file-directory-p file)
|
||||
(setq file (expand-file-name file)
|
||||
file (if (file-directory-p file)
|
||||
(file-name-as-directory file)
|
||||
(file-name-directory file)))
|
||||
(or (vc-file-getprop file 'vc-mtn-root)
|
||||
|
|
|
@ -135,6 +135,7 @@ If you want to force an empty list of arguments, use t."
|
|||
|
||||
(defun vc-svn-registered (file)
|
||||
"Check if FILE is SVN registered."
|
||||
(setq file (expand-file-name file))
|
||||
(when (vc-svn-root file)
|
||||
(with-temp-buffer
|
||||
(cd (file-name-directory file))
|
||||
|
|
Loading…
Add table
Reference in a new issue