all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Dan Nicolaescu <dann@gnu.org>
To: Glenn Morris <rgm@gnu.org>
Cc: 8179@debbugs.gnu.org, Lars Magne Ingebrigtsen <lmi@gnus.org>
Subject: bug#8179: 24.0.50; vc thinks that SVN takes care of all my files
Date: Wed, 16 Mar 2011 11:49:14 -0400	[thread overview]
Message-ID: <yxqzkovvzet.fsf@fencepost.gnu.org> (raw)
In-Reply-To: <x7vczkxpxb.fsf@fencepost.gnu.org> (Glenn Morris's message of "Tue, 15 Mar 2011 13:18:56 -0400")

Glenn Morris <rgm@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.





  reply	other threads:[~2011-03-16 15:49 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-05 12:13 bug#8179: 24.0.50; vc thinks that SVN takes care of all my files Lars Magne Ingebrigtsen
2011-03-07 23:46 ` Glenn Morris
     [not found] ` <mailman.0.1299542816.10278.bug-gnu-emacs@gnu.org>
2011-03-08  9:43   ` Lars Magne Ingebrigtsen
2011-03-08 17:50     ` Glenn Morris
2011-03-08 21:15       ` Stefan Monnier
     [not found]     ` <mailman.7.1299607619.4046.bug-gnu-emacs@gnu.org>
2011-03-15 15:34       ` Lars Magne Ingebrigtsen
2011-03-15 17:18         ` Glenn Morris
2011-03-16 15:49           ` Dan Nicolaescu [this message]
     [not found]         ` <mailman.4.1300210622.26153.bug-gnu-emacs@gnu.org>
2011-03-15 18:03           ` Lars Magne Ingebrigtsen
2011-03-15 18:41             ` Glenn Morris
2011-03-15 20:37               ` Lars Magne Ingebrigtsen
2011-03-15 19:04         ` Stefan Monnier
2011-03-15 19:35           ` Glenn Morris
2011-03-16  0:46             ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=yxqzkovvzet.fsf@fencepost.gnu.org \
    --to=dann@gnu.org \
    --cc=8179@debbugs.gnu.org \
    --cc=lmi@gnus.org \
    --cc=rgm@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.