开发者

When should I tag a revision in Mercurial

开发者 https://www.devze.com 2023-02-16 09:48 出处:网络
Could anyone give me any guidelines on when I might want to tag a revision in Mercurial. For ins开发者_如何学Ctance would it be a good idea to use them to mark points at which my application gets up

Could anyone give me any guidelines on when I might want to tag a revision in Mercurial.

For ins开发者_如何学Ctance would it be a good idea to use them to mark points at which my application gets uploaded?


  • When you release/deploy, it is a nice idea to tag.
  • When you just want a bookmark for yourself, you can use a local tag.
  • When you need to specify a specific revision, for example in a bug report or an email, simply use the changeset id, it is long but you can shorten it.


Here is a non exhaustive list of when you might want to tag your code:

  • When you deploy it on an environment
  • When your Continuous Integration pass successfully a set of quality tests
  • When a feature is integrated and complete
  • When the acceptance tests are successfully ended.

You may think that you'll end up with a lot of tags (and that's true), but it really helps to track the status of you development and to avoid that things go wild.


At our company we use tags when we deploy our applications to our servers.


I think it's a good practice to tag a codebase when it's released and you might want to tag it too at the end of a sprint / development cycle.


Tagging on releases is what the Mercurial project itself does:

https://www.mercurial-scm.org/wiki/StandardBranching

you can see the results here:

https://www.mercurial-scm.org/repo/hg/tags

0

精彩评论

暂无评论...
验证码 换一张
取 消