tomas@tuxteam.de wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On Fri, Jul 04, 2008 at 03:52:48PM -0400, Stefan Monnier wrote: >>>>> Here's a patch that fixes a bug I've noticed in vc-find-root. When called > > [...] > >>> I believe that it's for systems like CVS, where each subdirectory under >>> version control has its own CVS directory. >> Sorry, but that doesn't help me ;-( >> Anyone has a more complete explanation? > > Reading the docstring, my guess would be: vc-find-root walks the dir > tree up _until_ it finds WITNESS (as an evidence for the VC tree's root > dir). Unless we have CVS or SVN or similar, where every subdir has > WITNESS, so the root would be the last up-tree directory having WITNESS. > > But I might be off-by-one ;-) > > Regards > - -- tomás > This is exactly correct, though in the current trunk there is a bug such that the function does not behave like this. The patch causes it to work as documented. The changes are actually quite small, to demonstrate, the same patch ignoring whitespace is attached, though the original should be applied so that the indentation is correct.