GNU bug report logs -
#8179
24.0.50; vc thinks that SVN takes care of all my files
Previous Next
Reported by: Lars Magne Ingebrigtsen <larsi <at> gnus.org>
Date: Sat, 5 Mar 2011 12:17:02 UTC
Severity: minor
Tags: fixed
Merged with 3807,
8603,
18514,
42966
Found in versions 23.3.50, 24.0.50, 24.3, 28.0.50
Fixed in version 28.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
Message #44 received at 8179 <at> debbugs.gnu.org (full text, mbox):
Glenn Morris <rgm <at> gnu.org> writes:
> Lars Magne Ingebrigtsen wrote:
>
>> That would be the case if any of the other backends are as, er,
>> permissive as the SVN backend is. Which I slightly doubt.
>
> Well, take a look:
>
> (defalias 'vc-svn-responsible-p 'vc-svn-root)
>
> (defun vc-svn-root (file)
> (vc-find-root file vc-svn-admin-directory))
It seems that the root cause of this problem is that .svn changed from
being present in each directory to being present once per managed tree.
Maybe refining the test in vc-svn-responsible-p can solve the problem
before re-implementing the VC part that determines the backend:
Completely untested:
(defun vc-svn-responsble-p (DIR)
(let ((root (vc-svn-root DIR))
;; This assumes that vc-svn-root returns a directory name or nil
(and root (file-exists-p (expand-file-name root "wc.db")))))
>
>
> (defalias 'vc-git-responsible-p 'vc-git-root)
>
> (defun vc-git-root (file)
> (vc-find-root file ".git"))
>
>
> (defalias 'vc-hg-responsible-p 'vc-hg-root)
>
> (defun vc-hg-root (file)
> (vc-find-root file ".hg"))
>
>
> etc.
This bug report was last modified 4 years and 206 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.