[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: vc-find-root does not work for non-existent file argument
From: |
Dan Nicolaescu |
Subject: |
Re: vc-find-root does not work for non-existent file argument |
Date: |
Fri, 20 Jul 2007 10:56:02 -0700 |
Stefan Monnier <address@hidden> writes:
> > If FILE that is managed using either hg or bzr (both of which use
> > vc-find-root) is deleted, doing C-x C-f FILE RET after that will not
> > result emacs asking the question: "File FILE was lost; check out from
> > version control? "
>
> > The reason is that (vc-find-root FILE BLAH) returns nil, so VC thinks
> > that FILE is not under version control.
> > vc-find-root returns nil because of the way the result of
> > file-attributes is used...
>
> I believe this is fixed now, but there seem to be a related problem left
> over, ... working on it,
Is the issue you are still looking at something like this:
mkdir -p /tmp/foo/bar
(vc-find-root "/tmp/foo/" "bar") => nil (instead of t)?