答复: diff and tarball issues

PC32 XHChen XHChen at Winbond.com.tw
Sun Aug 3 20:46:52 PDT 2003


Hi:
	the error still exists even though "testdir" was created.

	my system information:
	CVS:
		Client: Concurrent Versions System (CVS) 1.11.2 (client/server)
		Server: Concurrent Versions System (CVS) 1.11.2 (client/server)

	OS:
		Linux localhost.localdomain 2.4.18-14 #1 Wed Sep 4 12:13:11 EDT 2002 i686 athlon i386 GNU/Linux

-----原始邮件-----
发件人: scop at freebsd.org [mailto:scop at freebsd.org]
发送时间: 2003年7月29日 2:32
收件人: freebsd-cvsweb at freebsd.org
主题: Re: diff and tarball issues


On Wed, 2003-06-18 at 04:23, PC32 XHChen wrote:

> 	The problem may be fixed by adding a "chdir" before "system" function in perl cgi,
> 	since "cvs co -d" can not specify sub-directories.  I'm not sure...
[...]
> >  I got the same error when I use cvsweb. And the following 
> > difference was found:
> > 
> > 	cvs co -d test ModulePath
> > 		(OK)
> >
> > 	cvs co -d testdir/test ModulePath
> > 		(ERROR)
> > 		cvs co failure: No such file or directory:

What version of cvs is this?  (cvs --version)

Does it work if you create "testdir" before running the latter command?

> > When clicking A unified diff 'diff' for a given file, I get:
> > 
> > RCS file: /home/tkralidi/cvsroot/owsview/blank.html,v
> > retrieving revision 1.1
> > retrieving revision 1.2
> > diff -u -p -r1.1 -r1.2
> > /bin/diff: illegal option -- u
> > usage: diff [-bitw] [-c | -e | -f | -h | -n] file1 file2
> >        diff [-bitw] [-C number] file1 file2
> >        diff [-bitw] [-D string] file1 file2
> >        diff [-bitw] [-c | -e | -f | -h | -n] [-l] [-r] [-s] [-S name]
> > directory1 directory2
> > rcsdiff: /home/tkralidi/cvsroot/owsview/blank.html: diff failed

I suggest that you either:

* Install GNU diff (in the diffutils package) and make your setup use 
  it (ie. rcsdiff(1) should run the GNU one instead of the one in /bin).

* Or modify cvsweb.cgi, commenting out the @DIFFTYPES that your diff(1) 
  doesn't grok, and change the default to a supported in cvsweb.conf
  (%DEFAULTVALUE).

HTH,
-- 
\/

_______________________________________________
freebsd-cvsweb at freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-cvsweb
To unsubscribe, send any mail to "freebsd-cvsweb-unsubscribe at freebsd.org"


More information about the freebsd-cvsweb mailing list