emacs-devel
[Top][All Lists]
Advanced

[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: Sat, 21 Jul 2007 09:59:49 -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)? 
  > 
  > Yes, and I believe it is fixed now,

Can you please fix it on the 22.2 branch too? 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]