On 10 Apr 1999, Lars Gullik Bj�nnes wrote:
...
> It seems to work by just quoteing the filename.
> 
> That is the fix I put in cvs. Preliminary tests show that Register
> works, as does Edit. So RCS does seem to handle filenames with spaces.
> 
> Please verify that the cvs version works.
> 
>       Lgb

It works quite well, but a misplaced ')' in lyxvc.C (patch enclosed) make
checkin fail with following message :

without debug :
phb@teufteuf:/home/phb> sh: unexpected EOF while looking for `"'
sh: -c: line 2: syntax error

with debug :
phb@teufteuf:/home/phb> lyx -dbg 2048 &
[2] 2490
Setting debug level to 2048
Debugging LYXVC #2048
Debugging LYXSERVER #8192
Assigning to buffer 0
Checking if file is under vc: /home/phb/doc/lyx/Jaquette.lyx,v
Yes it is under vc.
LyXVC: This file is a VC file.
LyXVC::scanMaster: current lex text: `head'
LyXVC::scanMaster: current lex text: `access;'
LyXVC::scanMaster: current lex text: `symbols;'
LyXVC::scanMaster: current lex text: `locks'
LyXVC::scanMaster: current lex text: `strict;'
LyXVC::scanMaster: current lex text: `comment'
LyXVC: checkIn
doVCCommand: ci -q -u -m"(no log msg)" "Jaquette.lyx
sh: unexpected EOF while looking for `"'
sh: -c: line 2: syntax error
Assigning to buffer 0

Sorry for testing it on 1.0.2pre3 release.

PH

> 
> 
> 

Pierre-Henri BOINNARD
email:[EMAIL PROTECTED]
*** src/lyxvc.C.orig    Wed Apr 28 00:18:36 1999
--- src/lyxvc.C Wed Apr 28 00:58:56 1999
***************
*** 219,223 ****
        if (tmp.empty()) tmp = "(no log msg)";
        doVCCommand("ci -q -u -m\"" + tmp + "\" \""
!                   + OnlyFilename(_owner->getFileName())) + "\"";
        _owner->getUser()->getOwner()->getLyXFunc()->Dispatch("buffer-reload");
  }
--- 219,223 ----
        if (tmp.empty()) tmp = "(no log msg)";
        doVCCommand("ci -q -u -m\"" + tmp + "\" \""
!                   + OnlyFilename(_owner->getFileName()) + "\"");
        _owner->getUser()->getOwner()->getLyXFunc()->Dispatch("buffer-reload");
  }

lyxvc.C.patch.gz

Reply via email to