You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by "Schroeder, Hartmut" <Ha...@plath.de> on 2008/03/18 15:28:17 UTC
history of a file as a comment in the file
Hi,
is there a possibility in subversion to include the history of a file as
a comment in the file?
(in PVCS that can be done via the keyword $log$)
thanks.
hartmut
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: history of a file as a comment in the file
Posted by Benjamin Smith-Mannschott <bs...@gmail.com>.
On Mar 18, 2008, at 16:31, Matt imMute Sickler wrote:
> Schroeder, Hartmut wrote:
>> Hi,
>> is there a possibility in subversion to include the history of a
>> file as
>> a comment in the file?
>> (in PVCS that can be done via the keyword $log$)
>> thanks.
>> hartmut
>
> Simply, no.
>
> Slightly more complicated, svn doesnt do that because it would be
> difficult to keep track of what text was part of the log and which
> parts are not.
No. That's not the problem. This is:
[FAQ: http://subversion.tigris.org/faq.html#log-in-source]
Does Subversion have a keyword which behaves like $Log$ in CVS?
No. There is no equivalent for the $Log$ keyword in CVS. If you
want to retrieve a log for a specific file, you can run 'svn log
your-file-name' or 'svn log url-to-your-file'. From the mailing
list some explanations why $Log$ is bad:
"$Log$ is a total horror the moment you start merging changes
between branches. You're practically guaranteed to get
conflicts
there, which -- because of the nature of this keyword -- simply
cannot be resolved automatically."
And:
Subversion log messages are mutable, they can be changed by
setting the svn:log revision property. So the expansion of
$Log:$ in any given file could be out of date. Update may well
need to retrieve the appropriate log message for each
occurrence
of the $Log:$ keyword, even if the file that contained it was
not otherwise updated.
[/FAQ]
> If you write a patch that implements this, I am sure the dev team
> would welcome it.
Doubtful.
[FAQ: http://subversion.tigris.org/faq.html#log-in-source]
I don't care about that. I want to use it anyway. Will you
implement it?
No. There are no plans to implement it ourselves or accept
patches which implement this feature. If you want to distribute
your files with some kind of changelog included, you might be
able to work around this limitation in your build system.
[/FAQ]
// Ben Smith-Mannschott
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: history of a file as a comment in the file
Posted by Blair Zajac <bl...@orcaware.com>.
Matt imMute Sickler wrote:
> Schroeder, Hartmut wrote:
>> Hi,
>> is there a possibility in subversion to include the history of a file as
>> a comment in the file?
>> (in PVCS that can be done via the keyword $log$)
>>
>>
>> thanks.
>>
>>
>> hartmut
>
> Simply, no.
>
> Slightly more complicated, svn doesnt do that because it would be
> difficult to keep track of what text was part of the log and which parts
> are not.
> If you write a patch that implements this, I am sure the dev team would
> welcome it.
Actually, most likely the patch would not be accepted:
http://subversion.tigris.org/faq.html#log-in-source
Regards,
Blair
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: history of a file as a comment in the file
Posted by Matt imMute Sickler <im...@msk4.ath.cx>.
Schroeder, Hartmut wrote:
> Hi,
> is there a possibility in subversion to include the history of a file as
> a comment in the file?
> (in PVCS that can be done via the keyword $log$)
>
>
> thanks.
>
>
> hartmut
Simply, no.
Slightly more complicated, svn doesnt do that because it would be
difficult to keep track of what text was part of the log and which parts
are not.
If you write a patch that implements this, I am sure the dev team would
welcome it.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: history of a file as a comment in the file
Posted by Erik Huelsmann <eh...@gmail.com>.
On 3/18/08, Schroeder, Hartmut <Ha...@plath.de> wrote:
> Hi,
> is there a possibility in subversion to include the history of a file as
> a comment in the file?
> (in PVCS that can be done via the keyword $log$)
http://subversion.tigris.org/faq.html#log-in-source
Bye,
Erik.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org