On Mon, 23 Oct 2017 12:14:41 +0200 Philipp Klaus Krause <p...@spth.de> wrote:
> lyx tries to autodetect if a file is under verison control. When lyx
> 2.2.3 reads an input file, it recursively checks parent directories for
> .svn, .git, etc.
> 
> In case it find a .svn directory, it invokes svn info to parse the
> output to see if the file is under version control. For svn, the code is
> in SVN::findFile in lines 1154ff of src/VCBackend.cpp.
> 
> However, there is a bug in checking if a file is in svn. If the file is
> in a directory that is not under svn, but a parent directory is under
> svn, lyx will invoke svn info. Since the directory itself is not under
> svn, svn info will fail "svn: E155007:
> '/home/philipp/sdcc-2/build/doc/sdccman.lyx' is not a working copy"; lyx
> considers this an error.

Looks like correct analysis.

> This issue makes out-of-tree builds fail. Example: the sdcc manual is a
> .lyx file. When checking out sdcc from svn, and then trying to do an
> out-of-tree build in a directory build, it fails due to this bug.

Despite the warning from svn info, lyx normally loads up the file,
exports it etc.
So I do not follow what "out-of-tree builds fail" exactly means
or what kind of problem you actually encounter.

Pavel

Reply via email to