How can I mark a group of changes/changesets in SVN, Hg, or Git

Posted by sylvanaar on Stack Overflow See other posts from Stack Overflow or by sylvanaar
Published on 2010-05-23T23:42:43Z Indexed on 2010/05/23 23:51 UTC
Read the original article Hit count: 573

Filed under:
|
|
|

I would like to mark an arbitrary group of commits/changesets with a label.

  • Commit 1 *Mark 1
  • Commit 2 *Mark 2
  • Commit 3
  • Commit 4 *Mark 1
  • Commit 5 *Mark 2

The goal is to easily locate all the changes for a specific mark, and to have that grouping persisted in the VCS directly, as opposed to some outside system like a bug tracking system.

The location and ordering of the marks needs to be arbitrary, and should be able to work with both committed/uncommitted and pushed/unpushed changes.

In SVN the best way I know is to just edit the commit notes and add some sort of special text that you can search for e.g. "**Mark 1". Or just to make a fake edit and commit it and use its commit note to list all the included revisions.

Is there a better solution for SVN? Are there equivalent or better solutions for Hg or Git?

© Stack Overflow or respective owner

Related posts about svn

Related posts about git