Skip to content

www.rolfje.com

Link CVS/SVN commit to GForge Tracker Item

Posted on 2008-02-21 By rolfje 3 Comments on Link CVS/SVN commit to GForge Tracker Item

Today I spent some time figuring out what the exact format of the CVS comment is when I want to link a commit to a GForge tracker item. I’ll try to explain it a bit simpler:

  • We have GForge installed at work. We use GForge to manage a software project for a customer.
  • The customer reports a bug in the Tracker of GForge. This bug gets assigned to me.
  • I read the code, find the problem and fix it. Now I want to commit the fix to the GForge integrated CVS, and have it automatically linked to the Tracker item for future reference.

I spent 30 minutes Googling for an example, and did find a lot of info, but no real usage examples. The info says “Include the tracker item id in the commit comment”. I spent anther 10 to 20 minutes trying to figure out if this meant just the number, the number with the prefix, or brackets, or both. To save more people from searching, you should copy-paste the complete tracker id from the tracker item screen.

Example:

To connect a CVS commit to Tracker Item 123, use the following comment:

cvs commit xyz.txt “This is a commit comment for [#123] in GForge project XYZ”

GForge will then automatically link the commit to the tracker item(s). You can have multiple item id’s in there, and you can also do multiple commits for a single tracker item.

Another great tip:  Enable the “Require Tracker Item ID on commit” to force people to do this. Then, create a seperate tracker item titled “Generic Work” so that people who are NOT working on a specific Tracker kan still commit. This forces people to think about what thei’re committing for.

One step further would be to have a seperate tracker item for “refactoring” and “configuration management” or have todo tracker items for a release. This way you can link commits to certain types of work, maybe even to a time tracking tool.

Software Tags:GForge, Java, programming

Post navigation

Previous Post: Time Machine to the Rescue
Next Post: GForge CVS/SSH Authentication Failures

Comments (3) on “Link CVS/SVN commit to GForge Tracker Item”

  1. Abhijit Gurav says:
    2008-05-07 at 09:11

    Thxs it work fine.

    Reply
  2. allan says:
    2008-10-13 at 05:38

    how come svn doesn’t automatically assign tracker id to about-to-be-added files?

    Reply
  3. rolfje says:
    2008-10-13 at 18:21

    Hi Allan,

    I don’t understand your question. Tracker-id’s are things which are unrelated to added files to SVN. Besides, how is a system supposed to know that you are to add a file before you add it?

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

           

Recent Comments

  • rolfje on Methode Buijs uitgelegd
  • LinkedIn is at Peak Enshittifaction – Will Chatham's Blog on Linked-In not really Opt-in?
  • Hans j on 1N4148 diode as RF switch
  • Roaming Rhonda on DLNA on OSX, done right
  • Frans on How to fix a Krups XN2001 Nespresso machine

Tags

Anonimatron Apple backup design DIY DRM eclipse environment Fun gmail google hacking hamradio Hardware helicopter iphone ipod iTunes Java Keynote maven modelling motorcycle music news opinion oracle osx photo photography programming repair review security Software Steve Jobs T-Mobile technology Time Machine Ubuntu usability Utilities vacation windows Workshop

Categories

  • Apple (105)
  • Divorce (1)
  • Electronics (3)
  • Fun (57)
  • Games (7)
  • Hardware (72)
  • Microsoft (18)
  • Racing (14)
  • Software (134)
  • Uncategorized (65)
  • Workshop (20)

Archives

Copyright © 2025 www.rolfje.com.

Powered by PressBook WordPress theme