Subversion Ersetzen von Schlüsselwörtern
Hallo zusammen,
vorweg das System:
Debian 6.0.10
SVN: 1.6.12
ich möchte, dass der SVN-Server bei jedem Commit automatisch bestimmte Keywords ersetzt. Dazu habe ich entsprechend die /etc/subversion/config wie folgt angepasst:
In den benutzerspezifischen Configs unter /home/{user}/.subversion/config sind diese Parameter (wie alle anderen auch, auskommentiert). Da dürfte sich also nichts in die Quere kommen.
Trotzdem funktioniert das automatische Ersetzen nicht; es muss immer noch explizit für jede Datei vor dem Commit der Parameter svn:keywords gesetzt werden.
Ich habe auch schon versucht, die Keywords in Anführungszeichen zu setzen, also
*.java = svn:keywords="Author Date Id Rev URL"
hat aber leider auch nichts gebracht.
Wo liegt mein (Denk)fehler?
vg
Bytecounter
vorweg das System:
Debian 6.0.10
SVN: 1.6.12
ich möchte, dass der SVN-Server bei jedem Commit automatisch bestimmte Keywords ersetzt. Dazu habe ich entsprechend die /etc/subversion/config wie folgt angepasst:
...
### Section for configuring automatic properties.
enable-auto-props = yes
[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 (case-insensitively) 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:keywords=Author Date Id Rev URL;svn:eol-style=native
*.sh = svn:eol-style=native;svn:executable
*.txt = svn:eol-style=native;svn:keywords=Author Date Id Rev URL;
*.php = svn:keywords Author Date Id Rev URL
*.phtml = svn:keywords=Author Date Id Rev URL
*.js = svn:keywords=Author Date Id Rev URL
*.tmpl = svn:keywords=Author Date Id Rev URL
*.css = svn:keywords=Author Date Id Rev URL
*.html = svn:keywords=Author Date Id Rev URL
*.java = svn:keywords=Author Date Id Rev URL
...
In den benutzerspezifischen Configs unter /home/{user}/.subversion/config sind diese Parameter (wie alle anderen auch, auskommentiert). Da dürfte sich also nichts in die Quere kommen.
Trotzdem funktioniert das automatische Ersetzen nicht; es muss immer noch explizit für jede Datei vor dem Commit der Parameter svn:keywords gesetzt werden.
Ich habe auch schon versucht, die Keywords in Anführungszeichen zu setzen, also
*.java = svn:keywords="Author Date Id Rev URL"
hat aber leider auch nichts gebracht.
Wo liegt mein (Denk)fehler?
vg
Bytecounter
Please also mark the comments that contributed to the solution of the article
Content-ID: 255659
Url: https://administrator.de/forum/subversion-ersetzen-von-schluesselwoertern-255659.html
Printed on: February 10, 2025 at 00:02 o'clock