bug-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

directory name with space bug (commitinfo and loginfo)


From: Philippe Marchesseault
Subject: directory name with space bug (commitinfo and loginfo)
Date: Fri, 19 Nov 2004 23:46:00 -0500
User-agent: KMail/1.6.2

Hello,

I believe I have hit a limitation with CVS's handling of directories with 
spaces in the directory name. When I commit a file from a directory with a 
space in the path name, the commitinfo and loginfo script become unparsable. 
Let me explain this with a nice example,

commitinfo output:
pmarches commitinfo /home/pmarches/cvstest/cvstest/src/a s d toto.java

loginfo output:
pmarches loginfo "cvstest/src/a s d toto.java,1.4,1.5"
Update of /home/pmarches/cvstest/cvstest/src/a s d
In directory linux:/tmp/cvs-serv7187/src/a s d

Modified Files:
    toto.java 
Log Message:
A Comment

-------End Nice example-------------

So in the above commitinfo, it is impossible to determine what is the 
directory name and what is the filename. Could be any one of:
a/s d toto.java
a s/d toto.java
a s d/toto.java

The loginfo is parsable in an akward way by using the string Update 
of /home/pmarches/cvstest/cvstest/src/a s d to determine the directory.

My suggestion is to append a trailing / to the directory portion of loginfo 
and commitinfo. It is probably very easy to do and will not break path 
compatibility.

Thank you!




reply via email to

[Prev in Thread] Current Thread [Next in Thread]