Am 15.11.2010 um 13:42 schrieb LyX Ticket Tracker:

> #7035: version tracking fails with error in running RCS ci
> -----------------------------+----------------------------------------------
> Reporter:  kuhn             |       Owner:  nob...@…      
>     Type:  defect           |      Status:  new           
> Priority:  high             |   Milestone:  2.0.0         
> Component:  version control  |     Version:  2.0.0svn      
> Severity:  major            |    Keywords:                
> -----------------------------+----------------------------------------------
> Changes (by sanda):
> 
>  * keywords:  tracking =>
>  * priority:  normal => high
>  * severity:  normal => major
> 
> 
> Old description:
> 
>> Created (registered) a version of a simple one-sentence lyx document.
>> Tried to "Check in Changes..."  After first entering a log message in the
>> pop-up box, I received an error pop-up that says:
>> 
>>  Some problem occured while running the command:
>> 'ci -q -u -m"aaaa" "newfile1.lyx"'.
>> 
>> I have RCS version 5.7 installed on Ubuntu Jaunty
>> 
>> Thanks
> 
> New description:
> 
> Created (registered) a version of a simple one-sentence lyx document.
> Tried to "Check in Changes..."  After first entering a log message in the
> pop-up box, I received an error pop-up that says:
> 
>   Some problem occured while running the command:
> 'ci -q -u -m"aaaa" "newfile1.lyx"'.
> 
> I have RCS version 5.7 installed on Ubuntu Jaunty
> 
> Thanks
> 
> --
> 
> Comment:
> 
>> it's not clear which LyX version was used by the ticket creator kuhn
> 
> 1.6.6

Are you sure? 
The LyX-version in ticket is 2.0.0svn... (is it the default?)

> there seem to be more catches. if you have already created archive and try
> to commit 1.6.6 version
> it will collapse too...
> 
> i will look later on this.

For 2.0.0 I propose the attached patch to cure the buffer load/readonly problem.
But maybe it has to be solved in another way. Vincent, can you have a look, 
please?

Stephan

Ticket URL: <http://www.lyx.org/trac/ticket/7035#comment:3>

Index: src/Buffer.cpp
===================================================================
--- src/Buffer.cpp      (Revision 36303)
+++ src/Buffer.cpp      (Arbeitskopie)
@@ -888,8 +888,8 @@
        }
 
        d->file_fully_loaded = true;
-       d->read_only = !fname.isWritable();
-       params().compressed = fname.isZippedFile();
+       d->read_only = !d->filename.isWritable();
+       params().compressed = d->filename.isZippedFile();
        saveCheckSum();
        return ReadSuccess;
 }

Reply via email to