How to tell when a user is making a tag vs a commit in Mercurial -


i have hook written mercurial. uses pretxncommit make sure user includes 'issue number' in commit message. user may use 'hg tag' command instead of commit. in case user not need input issue number.

how can tell when user making tag instead of commit??? here couple places have searched answer missing or documentation not go far in depth.
https://www.mercurial-scm.org/wiki/mercurialapi
http://hgbook.red-bean.com/read/handling-repository-events-with-hooks.html

how can tell when user making tag instead of commit???

  • making tag commit
  • clean tagging commit affect .hgtags file (and add 1 line file)

hth


Comments

Popular posts from this blog

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -