From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Dan Nicolaescu <dann@ics.uci.edu>
Cc: emacs-devel@gnu.org
Subject: Re: vc-find-root does not work for non-existent file argument
Date: Fri, 20 Jul 2007 14:09:44 -0400 [thread overview]
Message-ID: <jwv1wf3x7zd.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <200707201756.l6KHu2MO020412@oogie-boogie.ics.uci.edu> (Dan Nicolaescu's message of "Fri\, 20 Jul 2007 10\:56\:02 -0700")
>> > 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
next prev parent reply other threads:[~2007-07-20 18:09 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-16 0:50 vc-find-root does not work for non-existent file argument Dan Nicolaescu
2007-07-19 18:51 ` Stefan Monnier
2007-07-20 17:56 ` Dan Nicolaescu
2007-07-20 18:09 ` Stefan Monnier [this message]
2007-07-21 16:59 ` Dan Nicolaescu
2007-07-23 5:38 ` 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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwv1wf3x7zd.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=dann@ics.uci.edu \
--cc=emacs-devel@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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).