Bug: Rdiff Error: No such file or directory
If you do a Diff (
rdiff
script) on a topic that has no
RCS revision file you get this error message instead of the topic text:
co: /file/path/to/twiki/data/Web/RCS/TopicName.txt,v: No such file or directory
The spec is to show the topic text in a green
Added: section. This used to work in previous TWiki versions.
Test case
Create a topic (browser), remove the .txt,v file (telnet), and do a Diff (browser)
Environment
TWiki version: |
01 Feb 2003 |
TWiki plugins: |
N/A |
Server OS: |
N/A |
Web server: |
N/A |
Perl version: |
N/A |
Client OS: |
N/A |
Web Browser: |
N/A |
--
PeterThoeny - 29 Mar 2003
Follow up
the current system does not allow error returns very well. I'm going to refactor a few things to move the actual parsing into Store and its subclasses and resolve this..
--
SvenDowideit - 29 Mar 2004
mmmm, this is really a problem throughout all the code Store
I'm feeling like chickening out fixing this now, and would like to defer the change to Dakar, when we should take the time to redo the API to use a consistent error mechanism.
(I could fix just this instance of the probem, but get old revision also fails, and there's no error return from that.)
If you dissagree, please speakup, the change will require a large amount of testing and coding..
--
SvenDowideit - 12 May 2004
Fix record
There is no
co
error, but diff doesn't show green text in the version on
DevelopBranch.
--
CrawfordCurrie - 21 Feb 2005
I've tried this in various modes now (broken meta, revs but no meta, meta but no revs) and it responds robustly (though not particularly friendly). So I'm setting this to
NeedsARethink. If it re-emerges the bug can be reset.
--
CrawfordCurrie - 26 Mar 2005