This question about Not sure...: Answered

why is the -ko option used in checkout of files?


I have a bunch of word docs attached to a page and I noticed that when I click on view to look at them I was getting (or so I thought) the wrong one. I always seemed to get the previous revision to the one I had clicked on. I was basing this on the Revision and Date tags on the title page, you know the $Revision tags). Anyhow I eventually tracked this down to the "co" command used to get a copy of the file. foswiki is doing a "co -p<revision> -ko <filename> ". The -ko according to the man page for co says "Generate the old keyword string, present in the working file just before it was checked in." So in my case I wanted rev 1.5 , and got that except the file displayed its revision as 1.4. Very confusing to me at least. So here s the question what would I break if I removed that -ko option?


Lord knows. You'd have to go way back to find out why -ko was used, and TBH I'm not sure anyone would remember now.

All I can suggest is that you try it, see what happens, and if it works, propose a task to get it removed.

-- CrawfordCurrie - 03 Mar 2010

QuestionForm edit

Subject Not sure...
Version Foswiki 1.0.5
Status Answered
Topic revision: r2 - 03 Mar 2010, CrawfordCurrie - This page was cached on 11 Jan 2018 - 14:00.

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License