Add to source files the Log Message used for commit

24 views
Skip to first unread message

Jorgelina

unread,
Apr 12, 2019, 8:20:00 AM4/12/19
to TortoiseSVN
Hi,

I am pretty new using TortoiseSVN.
And I am not sure how or what to look at, in order to achieve the following:

We have some source files, and we want to add a header to them containing: Author, Date (though we could just use the ID) and the Log Message used when committed.
I found you can use the $ID$, which would be fine for that part, but I cannot find how to add the log messages...
The idea is the following:

Header:

$ID$
         $Log$


ID for latest change, 
But Log being a sequential add of all the logs:


$ID: Date-who-something$
          $Log:
              08-mar  changed cccc
              10-feb   changed aaaa
              01-jan   Changed bbbb
           $

I am not sure how to achieve this. I do not even know how to acquire the "Log" part of this.
Can anyone help me with this??

Thanks!!

Stefan

unread,
Apr 13, 2019, 2:25:15 AM4/13/19
to TortoiseSVN
keyword substitution is documented here:

But there's no $Log$ keyword, which is explained why here:

Jorgelina

unread,
Apr 15, 2019, 9:27:00 AM4/15/19
to TortoiseSVN
Thanks Stefan for the reply.
However, from the  "why there is no $Log$", there seems to be a workaround, on "working with your build system", do you happen to know what does this mean? How could I implement a workaround to get this Log into the file source?
Thanks and regards.

Stefan

unread,
Apr 15, 2019, 1:08:34 PM4/15/19
to TortoiseSVN


On Monday, April 15, 2019 at 3:27:00 PM UTC+2, Jorgelina wrote:
Thanks Stefan for the reply.
However, from the  "why there is no $Log$", there seems to be a workaround, on "working with your build system", do you happen to know what does this mean? How could I implement a workaround to get this Log into the file source?
Thanks and regards.

Well, you can extend your build script to fetch the log for each file and then insert that into the file.
But really: don't do that. You don't need the log in every file!
That was done before version control existed. But now there's version control, so there's really no reason anymore to keep the log in each file.

Stefan
 
Reply all
Reply to author
Forward
0 new messages