Bug 56782

Summary: CVS operations give errors
Product: [Developer tools] kdevplatform Reporter: Jan Ekholm <chakie>
Component: cvsAssignee: KDevelop Developers <kdevelop-devel>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: 0.9.94   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Fix the attribute path

Description Jan Ekholm 2003-04-03 09:44:05 UTC
Version:           3.0.0a4 (using KDE 3.1.1)
Installed from:     (testing/unstable)
Compiler:          gcc version 3.2.3 20030309 (Debian prerelease)
OS:          Linux (i686) release 2.4.18-1

Doing certain CVS operations  on files in a project gives errors. The project uses CVS and all operations work fine when done on the commanline (such as the embedded konsole). When the "File groups" view is shown and a file is highlighted at least the following operations fail with the error below:

	* Add to repository
	* Update
	* Commit

The error is:

cd 'src' && cvs -f add 'new_file.h'
/bin/bash: line 1: cd: src: No such file or directory
*** Exited with status: 1 ***

Doing the same operations in the "File Tree" view works ok. The difference seems to be that doing them there performs a "cd" to the absolute path of the 'src' directory, not to a relative path. Could it be that the "File Groups" view has a wrong working directory, one where 'src' is not a subdir?
Comment 1 Mario Scalas 2003-04-03 15:15:22 UTC
Created attachment 1296 [details]
Fix the attribute path

I had the same problem and proposed on 30th march the attached patch to use
absolute path instead of relative ones, but it seems it hasn't got any success
among the kdevelopes ;)
Can you apply it and tell me if it works for you?
Comment 2 Jan Ekholm 2003-04-03 17:26:08 UTC
I have another small patch that seems to solve it too. Have a look at 
http://www.infa.abo.fi/~chakie/media/cvs.patch 
 
Works fine for me after applying it. It basically makes sure all paths are 
always absolute. 
 
 
Comment 3 Amilcar do Carmo Lucas 2003-04-03 22:52:55 UTC
The combined patches from Mario and Jan, plus some changes I maid seam to fix
this bug.