[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: |
Stefan Monnier |
Subject: |
Re: vc-find-root does not work for non-existent file argument |
Date: |
Fri, 20 Jul 2007 14:09:44 -0400 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux) |
>> > 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)?
Yes, and I believe it is fixed now,
Stefan