On Fri, Sep 28, 2007 at 05:45:43PM +0200, svn@openbios.org wrote:
Modified: trunk/util/superiotool/superiotool.h
--- trunk/util/superiotool/superiotool.h 2007-09-28 15:39:10 UTC (rev 2813) +++ trunk/util/superiotool/superiotool.h 2007-09-28 15:45:43 UTC (rev 2814) @@ -1,5 +1,5 @@ /*
- This file is part of the LinuxBIOS project.
- This file is part of the superiotool project.
- Copyright (C) 2007 Carl-Daniel Hailfinger
- Copyright (C) 2007 Uwe Hermann uwe@hermann-uwe.de
@@ -29,7 +29,7 @@ #include <getopt.h> #include <sys/io.h>
-#define SUPERIOTOOL_VERSION "0.1" +#define SUPERIOTOOL_VERSION "r$Rev$"
How do I work with this? $Rev$ for superiotool.h won't be increased automatically when I make changes to another file.
I don't even think $Rev$ will bump when I export the changed rev, so this will only show the last rev of the particular file?
I have this issue in my own svn repos. What am I doing wrong?
//Peter
On Sat, Sep 29, 2007 at 07:24:43PM +0200, Peter Stuge wrote:
-#define SUPERIOTOOL_VERSION "0.1" +#define SUPERIOTOOL_VERSION "r$Rev$"
How do I work with this? $Rev$ for superiotool.h won't be increased automatically when I make changes to another file.
It will be increased with every commit, no matter which files change. Contrary to CVS, svn has a global revision number (not per-file revisions), so it'll be updated whenever you commit something (or someone else committed something and you do an 'svn up').
I don't even think $Rev$ will bump when I export the changed rev, so this will only show the last rev of the particular file?
Nope. It should show the current revision of your tree.
Say you checkout r400 via 'svn co -r 400 svn://...' then $Rev$ should be replaced with '$Rev: 400 $'.
I have this issue in my own svn repos. What am I doing wrong?
Hm, dunno, the behaviour you described happens with CVS, but not svn usually.
Uwe.
On Mon, Oct 01, 2007 at 10:49:10PM +0200, Uwe Hermann wrote:
On Sat, Sep 29, 2007 at 07:24:43PM +0200, Peter Stuge wrote:
-#define SUPERIOTOOL_VERSION "0.1" +#define SUPERIOTOOL_VERSION "r$Rev$"
How do I work with this? $Rev$ for superiotool.h won't be increased automatically when I make changes to another file.
It will be increased with every commit, no matter which files change. Contrary to CVS, svn has a global revision number (not per-file revisions), so it'll be updated whenever you commit something (or someone else committed something and you do an 'svn up').
Scrap that, I was wrong.
The svn revision is indeed repository-wide (not per-file), _but_ the stuff which replaces $Rev$ is actually the last commit for this file (and not the repository-wide revision as I thought).
There's doesn't seem to be a keyword which is replaced with what we want, but there's an ugly hack we can use to make it still work in this case. See my patch in another mail.
Uwe.