[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

svnlook changed

From: BRUGGEMAN Jens (JBRG) <Jens.Bruggeman_at_seco-m.be>
Date: 2004-11-04 13:51:55 CET

Hi,
 
I wanted some information about the svnlook changed output.
I use the 'svnlook changed' command in a pre-commit hook. Therefore it is
important I fully understand the output of the command.
 
Can anyone verify this overview of the output:
 
When only textual changes:
-------------------------------
A Testfile.txt -> Adding new file
U TestFile.txt -> Updating new file
D TestFile.txt -> Delete existing file
 
When only property changes:
--------------------------
If the file 'TestFile.txt' is already a SVN file but has a property change
(adding of property) then you get the following:
UU TestFile.txt -> Property change of file
 
But when you have the following situation:
You create a new file MyTestfile.txt and add it in SVN (without commit) +
change property svn:eol-style=native. Then you try to commit the file.
I displayed the 'svnlook changed' information and it shows only the
following line:
A MyTestfile.txt
 
I would have thought there would be the following:
A MyTestfile.txt
UU MyTestfile.txt
 
Why do I ask this?
I want to implement in the pre-commit an extra check to make sure every file
has the property svn:eol-style=native. If not, the transaction is aborted
and the user will be prompted with reason.
But I have no idea how to check the property because the 'svnlook changed'
does not show a property change. If you allow the commit, the property of
that new file is added in SVN though.
 
Anyone any thoughts about implementing this?
 
Greetings,
Jens
Received on Thu Nov 4 13:57:11 2004

This is an archived mail posted to the Subversion Users mailing list.