
I'm having problems checking in a couple of file types: *.vcproj // text xml for VC projects *.sln // text xml for VC solutions These don't appear in my local SVN configuration. And the pre-commit script is complaining about them. Could this be fixed please? Robert Ramey

-----Original Message----- From: boost-bounces@lists.boost.org [mailto:boost-bounces@lists.boost.org] On Behalf Of Robert Ramey Sent: 15 August 2007 17:18 To: boost@lists.boost.org Subject: [boost] [SVN] Mime types on check in
I'm having problems checking in a couple of file types:
*.vcproj // text xml for VC projects *.sln // text xml for VC solutions
These don't appear in my local SVN configuration. And the pre-commit script is complaining about them. Could this be fixed please?
I had a similar problem with a new .qbk file I had to add *.qbk = svn:eol-style=native; svn:keywords=Id Date Revision Author HeadURL; svn:mime-type=text/plain to my config file at C:\Documents and Settings\Administrator\Application Data\Subversion\config You might have to do something similar? (the files are really xml, so are plain text). But others more expert can probably advise better... Paul --- Paul A Bristow Prizet Farmhouse, Kendal, Cumbria UK LA8 8AB +44 1539561830 & SMS, Mobile +44 7714 330204 & SMS pbristow@hetp.u-net.com

I could do that - but won't this just leave everyone else with the same problem? Robert Ramey Paul A Bristow wrote:
-----Original Message----- From: boost-bounces@lists.boost.org [mailto:boost-bounces@lists.boost.org] On Behalf Of Robert Ramey Sent: 15 August 2007 17:18 To: boost@lists.boost.org Subject: [boost] [SVN] Mime types on check in
I'm having problems checking in a couple of file types:
*.vcproj // text xml for VC projects *.sln // text xml for VC solutions
These don't appear in my local SVN configuration. And the pre-commit script is complaining about them. Could this be fixed please?
I had a similar problem with a new .qbk file
I had to add
*.qbk = svn:eol-style=native; svn:keywords=Id Date Revision Author HeadURL; svn:mime-type=text/plain
to my config file at
C:\Documents and Settings\Administrator\Application Data\Subversion\config
You might have to do something similar? (the files are really xml, so are plain text).
But others more expert can probably advise better...
Paul
--- Paul A Bristow Prizet Farmhouse, Kendal, Cumbria UK LA8 8AB +44 1539561830 & SMS, Mobile +44 7714 330204 & SMS pbristow@hetp.u-net.com
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

Robert Ramey wrote:
I'm having problems checking in a couple of file types:
*.vcproj // text xml for VC projects *.sln // text xml for VC solutions
These don't appear in my local SVN configuration. And the pre-commit script is complaining about them. Could this be fixed please?
As I understand it, this is deliberate, and it's up to you to ensure that every file you commit has valid Mime types set. To do this automagically in future: locale your SVN config file and add something like: *.sln = svn:eol-style=native; svn:mime-type=text/xml *.vcproj = svn:eol-style=native; svn:mime-type=text/xml However, since you have already added them, you will need to add the properties manually before committing: if you are using TortoiseSVN then right click and SVN->Properties will give you a dialog that displays existing properties and lets you set new ones. Set svn:eol-style to "native" and svn:mime-type to "text/xml". Otherwise you can use the command line: svn propset svn:mime-type=text/xml filename etc to achieve the same effect. HTH, John.

On Aug 15, 2007, at 1:11 PM, John Maddock wrote:
Robert Ramey wrote:
I'm having problems checking in a couple of file types:
*.vcproj // text xml for VC projects *.sln // text xml for VC solutions
These don't appear in my local SVN configuration. And the pre-commit script is complaining about them. Could this be fixed please?
As I understand it, this is deliberate, and it's up to you to ensure that every file you commit has valid Mime types set.
Yes.
To do this automagically in future: locale your SVN config file and add something like:
*.sln = svn:eol-style=native; svn:mime-type=text/xml *.vcproj = svn:eol-style=native; svn:mime-type=text/xml
svn:eol-style for these two types should be CRLF. I've added these to http://svn.boost.org/trac/boost/wiki/BoostSubversion where the handing of EOL style and MIME types is described. - Doug

-----Original Message----- From: boost-bounces@lists.boost.org [mailto:boost-bounces@lists.boost.org] On Behalf Of John Maddock Sent: 15 August 2007 18:11 To: boost@lists.boost.org Subject: Re: [boost] [SVN] Mime types on check in
Robert Ramey wrote:
I'm having problems checking in a couple of file types:
*.vcproj // text xml for VC projects *.sln // text xml for VC solutions
These don't appear in my local SVN configuration. And the pre-commit script is complaining about them. Could this be fixed please?
As I understand it, this is deliberate, and it's up to you to ensure that every file you commit has valid Mime types set.
To do this automagically in future: locale your SVN config file and add something like:
*.sln = svn:eol-style=native; svn:mime-type=text/xml *.vcproj = svn:eol-style=native; svn:mime-type=text/xml
Supplementary question for SVN gurus - Which keywords should be enabled, if any, - I see possibles: keywords=Id Date Revision Author HeadURL for which types of file. Are these going to be useful in future? Paul --- Paul A Bristow Prizet Farmhouse, Kendal, Cumbria UK LA8 8AB +44 1539561830 & SMS, Mobile +44 7714 330204 & SMS pbristow@hetp.u-net.com

Paul A Bristow wrote:
Which keywords should be enabled, if any, - I see possibles:
keywords=Id Date Revision Author HeadURL
for which types of file.
Entirely up to you :-)
Are these going to be useful in future?
If you want SVN to perform keyword substitution in the file, then yes enable it, otherwise it's no loss if not enabled. Probably most useful for docs I guess, but I can see some folks wanting comments in code like: // Last revised $Date" and so on. John.
participants (4)
-
Doug Gregor
-
John Maddock
-
Paul A Bristow
-
Robert Ramey