Ben Haskell wrote: > >> On Fri, 4 Mar 2011, Ivan Krasilnikov wrote: > >> > >>> On Fri, Mar 4, 2011 at 22:41, meino.cramer wrote: > >>>> And at this point one will win 1000 points for free if knowing, > >>>> how to enter the version string... > >>>> > >>>> I tried > >>>> > >>>> 7.3.001 > >>>> r7.3.001 (like svn) > >>>> v7-3-001 (as used by .hg.tags) > >>>> > >>>> but without luck so far. > >>>> > >>>> What is the correct spelling here ? > >>> > >>> Type 'hg log | less' to see a list of all revisions. > >>> > >>> vim 7.3.000 is ee53a39d5896 (or 2a2ad267db08, they're the same). > >>> > >> > >> The hg tags stop at v7-2-235 in my version of the repo, and the last > >> log message for .hgtags is: > >> > >> changeset: 2029:875230a0a1bf > >> user: convert-repo > >> date: Wed Jan 06 14:58:09 2010 +0000 > >> summary: update tags > >> > >> That makes me think they were only carried over from SVN. Bram, when > >> you push new patches, are you no longer adding the tags? It would be > >> beneficial. Having to inspect/grep the logs is a pretty poor > >> substitute for being able to do: > >> > >> $ hg co v7-3-000 > > > > I haven't looked into this yet. Is there a simple way to apply a tag > > to a specific hg changeset version, so that you can check out that > > version by that tag? > > > > $ hg tag -r [revision] [name] > > e.g. the Vim 7.3.000 candidate(s?) named above > $ hg tag -r ee53a39d5896 v7-3-000 > $ hg tag -r 2a2ad267db08 v7-3-000
I'm not going to type these commands, they need to be part of a script. So how do we get that revision number for a patch version, or the other way around: how do we get the version numb er from each revision number? We actually need both, one for tagging existing versions and one to tag each version when I commit a patch. I already have a script that does "hg commit" with the description taken from the patch. I would need to add something to that script to tag the version. I suppose that can only be done after the commit? Or can "hg commit" add a tag at the same time? The help doesn't mention it. -- There are 10 kinds of people: Those who understand binary and those who don't. /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org /// -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
