You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Lars Tiefland <lt...@gmail.com> on 2008/06/23 08:54:08 UTC

Setting svn:keywords when committing fails

Hi All,

perhaps you can help me.  I am having a big problem: I want to
automatically set svn:keywords for some files. However I always get a
"404 Bad Request" when committing.

my config:

### Section for configuring miscelleneous Subversion options.
[miscellany]
### Set global-ignores to a set of whitespace-delimited globs
### which Subversion will ignore in its 'status' output, and
### while importing or adding files and directories.
# global-ignores = *.o *.lo *.la #*# .*.rej *.rej .*~ *~ .#* .DS_Store
global-ignores = Arbeitsordner _notes _errors Bild_* *.DB *.DBE *.tpl.php
### Set log-encoding to the default encoding for log messages
# log-encoding = latin1
### Set use-commit-times to make checkout/update/switch/revert
### put last-committed timestamps on every file touched.
use-commit-times = yes
### Set no-unlock to prevent 'svn commit' from automatically
### releasing locks on files.
# no-unlock = yes
### Set enable-auto-props to 'yes' to enable automatic properties
### for 'svn add' and 'svn import', it defaults to 'no'.
### Automatic properties are defined in the section 'auto-props'.
enable-auto-props = yes

### Section for configuring automatic properties.
[auto-props]
### The format of the entries is:
###   file-name-pattern = propname[=value][;propname[=value]...]
### The file-name-pattern can contain wildcards (such as '*' and
### '?').  All entries which match will be applied to the file.
### Note that auto-props functionality must be enabled, which
### is typically done by setting the 'enable-auto-props' option.
# *.c = svn:eol-style=native
# *.cpp = svn:eol-style=native
# *.h = svn:eol-style=native
# *.dsp = svn:eol-style=CRLF
# *.dsw = svn:eol-style=CRLF
# *.sh = svn:eol-style=native;svn:executable
# *.txt = svn:eol-style=native
# *.png = svn:mime-type=image/png
# *.jpg = svn:mime-type=image/jpeg
# Makefile = svn:eol-style=native

*.php = svn:keywords="Id Url Rev Date Author"
*.tpl = svn:keywords=Id Url Rev Date Author
*.inc = svn:keywords=Id Url Rev Date Author
*.xml = svn:keywords=Id Url Rev Date Author
*.html = svn:keywords=Id Url Rev Date Author
*.htm = svn:keywords=Id Url Rev Date Author

I am using SVN 1.4.2; Apache 2.2..3 on Debian Etch

If I look into the error log of apache I see the following lines:

[Mon Jun 23 10:10:31 2008] [error] [client 192.168.0.10] XML Parser
Error: XML parser error code: not well-formed (invalid token) (4)
[Mon Jun 23 10:12:25 2008] [error] [client 192.168.0.10] XML Parser
Error: XML parser error code: not well-formed (invalid token) (4)
[Mon Jun 23 10:24:09 2008] [error] [client 192.168.0.10] XML Parser
Error: XML parser error code: not well-formed (invalid token) (4)

I've also tried without the quotation marks. Didn't work either!
What's going on here?
-- 
Live Long And Prosper,

Lars Tiefland

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Setting svn:keywords when committing fails

Posted by Eric Lee <er...@myprojects.srhost.info>.
*.php = svn:eol-style=LF;svn:keywords=Author Date Id Revision
*.txt = svn:eol-style=LF;svn:keywords=Author Date Id Revision
*.css = svn:eol-style=LF;svn:keywords=Author Date Id Revision
*.js = svn:eol-style=LF;svn:keywords=Author Date Id Revision

Hi,

I currently use this to set the auto-prop.

try delete the url and test it

my subversion version was 1.4.0 with default command client.

Eric,



----------------------------------------------------
http://myprojects.srhost.info
eric{at}myprojects{dot}srhost{dot}info
----- Original Message ----- 
From: "Lars Tiefland" <lt...@gmail.com>
To: <us...@subversion.tigris.org>
Sent: Monday, June 23, 2008 4:54 PM
Subject: Setting svn:keywords when committing fails


: Hi All,
: 
: perhaps you can help me.  I am having a big problem: I want to
: automatically set svn:keywords for some files. However I always get a
: "404 Bad Request" when committing.
: 
: my config:
: 
: ### Section for configuring miscelleneous Subversion options.
: [miscellany]
: ### Set global-ignores to a set of whitespace-delimited globs
: ### which Subversion will ignore in its 'status' output, and
: ### while importing or adding files and directories.
: # global-ignores = *.o *.lo *.la #*# .*.rej *.rej .*~ *~ .#* .DS_Store
: global-ignores = Arbeitsordner _notes _errors Bild_* *.DB *.DBE *.tpl.php
: ### Set log-encoding to the default encoding for log messages
: # log-encoding = latin1
: ### Set use-commit-times to make checkout/update/switch/revert
: ### put last-committed timestamps on every file touched.
: use-commit-times = yes
: ### Set no-unlock to prevent 'svn commit' from automatically
: ### releasing locks on files.
: # no-unlock = yes
: ### Set enable-auto-props to 'yes' to enable automatic properties
: ### for 'svn add' and 'svn import', it defaults to 'no'.
: ### Automatic properties are defined in the section 'auto-props'.
: enable-auto-props = yes
: 
: ### Section for configuring automatic properties.
: [auto-props]
: ### The format of the entries is:
: ###   file-name-pattern = propname[=value][;propname[=value]...]
: ### The file-name-pattern can contain wildcards (such as '*' and
: ### '?').  All entries which match will be applied to the file.
: ### Note that auto-props functionality must be enabled, which
: ### is typically done by setting the 'enable-auto-props' option.
: # *.c = svn:eol-style=native
: # *.cpp = svn:eol-style=native
: # *.h = svn:eol-style=native
: # *.dsp = svn:eol-style=CRLF
: # *.dsw = svn:eol-style=CRLF
: # *.sh = svn:eol-style=native;svn:executable
: # *.txt = svn:eol-style=native
: # *.png = svn:mime-type=image/png
: # *.jpg = svn:mime-type=image/jpeg
: # Makefile = svn:eol-style=native
: 
: *.php = svn:keywords="Id Url Rev Date Author"
: *.tpl = svn:keywords=Id Url Rev Date Author
: *.inc = svn:keywords=Id Url Rev Date Author
: *.xml = svn:keywords=Id Url Rev Date Author
: *.html = svn:keywords=Id Url Rev Date Author
: *.htm = svn:keywords=Id Url Rev Date Author
: 
: I am using SVN 1.4.2; Apache 2.2..3 on Debian Etch
: 
: If I look into the error log of apache I see the following lines:
: 
: [Mon Jun 23 10:10:31 2008] [error] [client 192.168.0.10] XML Parser
: Error: XML parser error code: not well-formed (invalid token) (4)
: [Mon Jun 23 10:12:25 2008] [error] [client 192.168.0.10] XML Parser
: Error: XML parser error code: not well-formed (invalid token) (4)
: [Mon Jun 23 10:24:09 2008] [error] [client 192.168.0.10] XML Parser
: Error: XML parser error code: not well-formed (invalid token) (4)
: 
: I've also tried without the quotation marks. Didn't work either!
: What's going on here?
: -- 
: Live Long And Prosper,
: 
: Lars Tiefland
: 
: ---------------------------------------------------------------------
: To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
: For additional commands, e-mail: users-help@subversion.tigris.org
: 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org


Re: Setting svn:keywords when committing fails

Posted by Lars Tiefland <lt...@gmail.com>.
@Eric: Thanks. Without the URL tag the commit works fine.
2008/6/24, Lars Tiefland <lt...@gmail.com>:
> @Ryan: You are correct. It's a typo. It's of course 400!
>  2008/6/23, Ryan Schmidt <su...@ryandesign.com>:
>
> >
>  >  On Jun 23, 2008, at 03:54, Lars Tiefland wrote:
>  >
>  >
>  > > perhaps you can help me.  I am having a big problem: I want to
>  > > automatically set svn:keywords for some files. However I always get a
>  > > "404 Bad Request" when committing.
>  > >
>  >
>  >  That's odd. 404 means "Not Found". "Bad Request" should be 400. Could you
>  > show us the exact copy-pasted output you get?
>  >
>  >
>  >
>  > > my config:
>  > >
>  >  [snip]
>  >
>  > > *.php = svn:keywords="Id Url Rev Date Author"
>  > > *.tpl = svn:keywords=Id Url Rev Date Author
>  > > *.inc = svn:keywords=Id Url Rev Date Author
>  > > *.xml = svn:keywords=Id Url Rev Date Author
>  > > *.html = svn:keywords=Id Url Rev Date Author
>  > > *.htm = svn:keywords=Id Url Rev Date Author
>  > >
>  > > I am using SVN 1.4.2; Apache 2.2..3 on Debian Etch
>  > >
>  > > If I look into the error log of apache I see the following lines:
>  > >
>  > > [Mon Jun 23 10:10:31 2008] [error] [client 192.168.0.10] XML Parser
>  > > Error: XML parser error code: not well-formed (invalid token) (4)
>  > > [Mon Jun 23 10:12:25 2008] [error] [client 192.168.0.10] XML Parser
>  > > Error: XML parser error code: not well-formed (invalid token) (4)
>  > > [Mon Jun 23 10:24:09 2008] [error] [client 192.168.0.10] XML Parser
>  > > Error: XML parser error code: not well-formed (invalid token) (4)
>  > >
>  > > I've also tried without the quotation marks. Didn't work either!
>  > > What's going on here?
>  > >
>  >
>  >  The quotation marks are not allowed in the autoprops definitions. I'm not
>  > sure why it wouldn't work when you remove the quotation marks.
>  >
>  >  As always, I recommend updating Subversion on the client and server to the
>  > current version, which is 1.5.0. On the server you should also update
>  > Apache, the current version of which is 2.2.9.
>  >
>  >
>  >
>
>
>
> --
>  Live Long And Prosper,
>
>  Lars Tiefland
>


-- 
Live Long And Prosper,

Lars Tiefland

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Setting svn:keywords when committing fails

Posted by Lars Tiefland <lt...@gmail.com>.
@Ryan: You are correct. It's a typo. It's of course 400!
2008/6/23, Ryan Schmidt <su...@ryandesign.com>:
>
>  On Jun 23, 2008, at 03:54, Lars Tiefland wrote:
>
>
> > perhaps you can help me.  I am having a big problem: I want to
> > automatically set svn:keywords for some files. However I always get a
> > "404 Bad Request" when committing.
> >
>
>  That's odd. 404 means "Not Found". "Bad Request" should be 400. Could you
> show us the exact copy-pasted output you get?
>
>
>
> > my config:
> >
>  [snip]
>
> > *.php = svn:keywords="Id Url Rev Date Author"
> > *.tpl = svn:keywords=Id Url Rev Date Author
> > *.inc = svn:keywords=Id Url Rev Date Author
> > *.xml = svn:keywords=Id Url Rev Date Author
> > *.html = svn:keywords=Id Url Rev Date Author
> > *.htm = svn:keywords=Id Url Rev Date Author
> >
> > I am using SVN 1.4.2; Apache 2.2..3 on Debian Etch
> >
> > If I look into the error log of apache I see the following lines:
> >
> > [Mon Jun 23 10:10:31 2008] [error] [client 192.168.0.10] XML Parser
> > Error: XML parser error code: not well-formed (invalid token) (4)
> > [Mon Jun 23 10:12:25 2008] [error] [client 192.168.0.10] XML Parser
> > Error: XML parser error code: not well-formed (invalid token) (4)
> > [Mon Jun 23 10:24:09 2008] [error] [client 192.168.0.10] XML Parser
> > Error: XML parser error code: not well-formed (invalid token) (4)
> >
> > I've also tried without the quotation marks. Didn't work either!
> > What's going on here?
> >
>
>  The quotation marks are not allowed in the autoprops definitions. I'm not
> sure why it wouldn't work when you remove the quotation marks.
>
>  As always, I recommend updating Subversion on the client and server to the
> current version, which is 1.5.0. On the server you should also update
> Apache, the current version of which is 2.2.9.
>
>
>


-- 
Live Long And Prosper,

Lars Tiefland

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Setting svn:keywords when committing fails

Posted by Ryan Schmidt <su...@ryandesign.com>.
On Jun 23, 2008, at 03:54, Lars Tiefland wrote:

> perhaps you can help me.  I am having a big problem: I want to
> automatically set svn:keywords for some files. However I always get a
> "404 Bad Request" when committing.

That's odd. 404 means "Not Found". "Bad Request" should be 400. Could  
you show us the exact copy-pasted output you get?


> my config:
[snip]
> *.php = svn:keywords="Id Url Rev Date Author"
> *.tpl = svn:keywords=Id Url Rev Date Author
> *.inc = svn:keywords=Id Url Rev Date Author
> *.xml = svn:keywords=Id Url Rev Date Author
> *.html = svn:keywords=Id Url Rev Date Author
> *.htm = svn:keywords=Id Url Rev Date Author
>
> I am using SVN 1.4.2; Apache 2.2..3 on Debian Etch
>
> If I look into the error log of apache I see the following lines:
>
> [Mon Jun 23 10:10:31 2008] [error] [client 192.168.0.10] XML Parser
> Error: XML parser error code: not well-formed (invalid token) (4)
> [Mon Jun 23 10:12:25 2008] [error] [client 192.168.0.10] XML Parser
> Error: XML parser error code: not well-formed (invalid token) (4)
> [Mon Jun 23 10:24:09 2008] [error] [client 192.168.0.10] XML Parser
> Error: XML parser error code: not well-formed (invalid token) (4)
>
> I've also tried without the quotation marks. Didn't work either!
> What's going on here?

The quotation marks are not allowed in the autoprops definitions. I'm  
not sure why it wouldn't work when you remove the quotation marks.

As always, I recommend updating Subversion on the client and server  
to the current version, which is 1.5.0. On the server you should also  
update Apache, the current version of which is 2.2.9.



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org