Dear Sir or Madam,
I want to implement the head revision number in my C project at the file version.h.
Unfortunately there is only the codeword $Revision$ to set the last revision where the file version.h was changed:
#define VERSION " FW.Vers. 0.0 $Revision: 146 $\n"
Is it possible to implement the Keyword $Head$ to always (every commit) update the string to the head revision number?
e.G.:
#define VERSION " FW.Vers. 0.0 $Head: 153 $\n"
The problem was detected e.G. here:
http://hobiger.org/blog/2013/04/18/svn-revision-number-in-c-code-an-impossible-task/
See SVN Manual (V1.8): 4.17.1.1. svn:keywords
Best regards
Stefan Eilers
M.Sc., Dipl.-Ing (FH)
Entwickler
IK Elektronik GmbH
Tel. +49 (0)351 426403-82
Fax +49 (0)351 426403-72
eilers...@ik-elektronik.com
Niederlassung Dresden:
Hugo-Junkers-Ring 5, Haus 107/W
D - 01109 Dresden
Hauptsitz Hammerbrücke:
Friedrichsgrüner Str. 11-13
D - 08262 Muldenhammer
Geschäftsführer: Jan-Erik Kunze
HRB 22126, Amtsgericht Chemnitz
Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Sollten Sie nicht der richtige Adressat sein oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese E-Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser E-Mail ist nicht gestattet.
Dear Sir or Madam,
I want to implement the head revision number in my C project at the file version.h.
Unfortunately there is only the codeword $Revision$ to set the last revision where the file version.h was changed:
#define VERSION " FW.Vers. 0.0 $Revision: 146 $\n"
Is it possible to implement the Keyword $Head$ to always (every commit) update the string to the head revision number?
e.G.:
#define VERSION " FW.Vers. 0.0 $Head: 153 $\n"
The problem was detected e.G. here:
http://hobiger.org/blog/2013/04/18/svn-revision-number-in-c-code-an-impossible-task/
When I try to hit the link in this topic to see the version.in file, I get a basic auth prompt. Is the tsvn repo not readable by anon callers?
BOb