-1

How can I add a revision history in a file like shown here. Just to keep it simple and clean.

Mottie
  • 84,355
  • 30
  • 126
  • 241
Kenny Meyer
  • 7,849
  • 6
  • 45
  • 66
  • 2
    Why would you want that? Use an actual version control system instead of putting information in the file that's mostly useless. – jamessan Nov 30 '09 at 21:03
  • I can understand you would want that in case you're distributing a couple of files to users and it makes sense to keep them informed the successive fixes or additions. However, a changelog generated by version control system used well (when you commit often) would contain much more entries than you want to appear in the file. – Gregory Pakosz Nov 30 '09 at 21:15
  • Thanks to both of you for the feedback. Well the reason I'm asking my question is because I think that using a VCS like Mercurial, SVN seems a little bit bloated to me when developing small, single-file scripts, e.g. Vim plug-ins, irssi scripts, backup scripts, whatever..), where the length of the main code doesn't exceed a few 100 lines. – Kenny Meyer Dec 01 '09 at 01:05

3 Answers3

2

That looks like it was hand coded, but you could get something like that with a combination of a version control system and a bug tracking system, such as Jira and SVN.

Myles
  • 20,860
  • 4
  • 28
  • 37
0

It depend on the version control system that U use. I don't know how to do it in SVN. But it seem that you will have to digg deep into the version control messages that are input when a commit is done

Stéphane
  • 306
  • 1
  • 2
  • 7
0

Many source control systems provide tags that can be embedded into a source file to automatically insert revision information (dates, users, history, comments, etc.) when embedded into the source code. What those tags are depends on the system being used.

... assumes good use of version control

James Conigliaro
  • 3,809
  • 19
  • 22