RE: RCS Version Control on Two Computers

2018-03-21 Thread Rich Shepard

On Wed, 21 Mar 2018, Baris Erkus wrote:


How did you do it? Did you define the commands one-by-one? I guess, you
cannot see the difference between two files on LyX.


Baris,

  I have a local repository and when I'm done making changes (or stopping
for the day) I access the version control dialog (so far only checking in
changes) and entering a comment. I've not needed to check out a version, yet
using the menu command to check out a previous version to get the one
checked in on the other system _might_ do the trick.

Regards,

Rich


RE: RCS Version Control on Two Computers

2018-03-21 Thread Baris Erkus


> FWIW, I set up the git repository externally then use git commands within LyX.

How did you do it? Did you define the commands one-by-one? I guess, you cannot 
see the difference between two files on LyX.






Re: RCS Version Control on Two Computers

2018-03-21 Thread Rich Shepard

On Wed, 21 Mar 2018, Rich Shepard wrote:


 FWIW, I set up the git repository externally then use git commands within
LyX.


  Then again, I run only linux.

Rich


Re: RCS Version Control on Two Computers

2018-03-21 Thread Rich Shepard

On Wed, 21 Mar 2018, Baris Erkus wrote:


BTW, any future plans for incorporating Git commands into LyX? I can do it
externally, but would be great if it was placed in LyX.


Baris,

  FWIW, I set up the git repository externally then use git commands within
LyX.

Rich


RE: RCS Version Control on Two Computers

2018-03-21 Thread Baris Erkus
I found the answer by myself on the LyX wiki:

https://wiki.lyx.org/LyX/VersionControlInstallationAndUsage#toc7

Version Control on the Cloud with RCS

Let’s assume this situation: you have to identical LyX installations with RCS 
on two different PCs, one at work and one at home. And you saved all your LyX 
files on your Box, dropbox or OneDrive. You want to be able to continue working 
at home after you leave your saved document at work. This can be done but not 
in a perfect way. What I mean is that you won’t be able to just have a version 
controlled document on one pc and use the same file on the other pc. What you 
have to do is check all changes on your work pc before leaving. When you go 
back home you have to check out the document and continue working. Note that 
won’t be able to keep the same history of version control on the file at work 
unless you do the check in/check out as I just described. If you save you 
document at work without checking them, then you lose all of these changes 
since you will have to check out the document at home to continue version 
control. This is an apparent bug in RCS and sadly it is the best thing 
available on Windows since LyX doesn’t yet fully support git.
(note: whoever is writting this I invite you to development mailing list. I do 
not exactly understand what your issue with RCS is, but we might be able to fix 
it. Pavel)


Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10


From: lyx-users@lists.lyx.org <lyx-users@lists.lyx.org> on behalf of Baris 
Erkus <bariser...@hotmail.com>
Sent: Wednesday, March 21, 2018 9:11:19 AM
To: lyx-users@lists.lyx.org
Subject: RCS Version Control on Two Computers

Hi,

I am working on a LyX document with RCS version control enabled.

I am working on the file during the day in my office on my office PC and in the 
evening on my home PC. I am using cloud to keep files.

I sometimes encounter that RCS gives an error. (I guess it is related with 
check-in check-out status, ready-only status and maybe other settings.)

[cid:image001.png@01D3C0F4.90C529F0]

What should I do to make RCS work on two PCs?

BTW, any future plans for incorporating Git commands into LyX? I can do it 
externally, but would be great if it was placed in LyX.

Thanks in advance,

Baris

Note: This is the fixed I found by myself:

When I check the “.lyx,v” file, I observe that the following header creates a 
problem. (I guess this header corresponds to checked-in status.)

head  1.8;
access;
symbols;
locks; strict;
comment@# @;

I check the header of fine-working RCS file and found that it is in the 
following format. (I guess this header corresponds to checked-out status.)

head  1.8;
access;
symbols;
locks
bariserkus:1.8; strict;
comment@# @;

If I replace the “locks; strict;”  portion with “locksbariserkus:1.8; 
strict;”, it works just fine.

Note that “1.8” is the version number and “bariserkus” is the author name.


RCS Version Control on Two Computers

2018-03-21 Thread Baris Erkus
Hi,

I am working on a LyX document with RCS version control enabled.

I am working on the file during the day in my office on my office PC and in the 
evening on my home PC. I am using cloud to keep files.

I sometimes encounter that RCS gives an error. (I guess it is related with 
check-in check-out status, ready-only status and maybe other settings.)

[cid:image001.png@01D3C0F4.90C529F0]

What should I do to make RCS work on two PCs?

BTW, any future plans for incorporating Git commands into LyX? I can do it 
externally, but would be great if it was placed in LyX.

Thanks in advance,

Baris

Note: This is the fixed I found by myself:

When I check the “.lyx,v” file, I observe that the following header creates a 
problem. (I guess this header corresponds to checked-in status.)

head  1.8;
access;
symbols;
locks; strict;
comment@# @;

I check the header of fine-working RCS file and found that it is in the 
following format. (I guess this header corresponds to checked-out status.)

head  1.8;
access;
symbols;
locks
bariserkus:1.8; strict;
comment@# @;

If I replace the “locks; strict;”  portion with “locksbariserkus:1.8; 
strict;”, it works just fine.

Note that “1.8” is the version number and “bariserkus” is the author name.