Manually adding tags

Scott Palmer swpalmer at gmail.com
Fri Aug 26 13:41:37 UTC 2011


On 2011-08-26, at 8:40 AM, Isaac Jurado wrote:

> On Fri, Aug 26, 2011 at 1:26 PM, Scott Palmer <swpalmer at gmail.com> wrote:
>> 
>>> If I understood correctly, you wan to tag a changeset you are about
>>> to commit, right?  If that is the case, you can forget about it
>>> because the .hgtags file needs the revision ID (the SHA) which you
>>> can't know until AFTER commit has been done.  So there is a
>>> bootstrapping problem.
>>> 
>>> Besides, the "hg tag" command is just that:
>>> 
>>> $ echo "version shaid" >>.hgtags && hg commit
>> 
>> I think he just wants to include more in that same commit. He is still
>> tagging an older version.
> 
> Oh well, in that case what I wrote doesn't apply.

Now that I think about it, wouldn't it make sense to have something like a --no-commit option for hg tag ?
That way we avoid people directly mucking about in the .hgtags file.  That could possible avoid some of the things that Greg was warning about earlier in this thread.

Scott




More information about the Mercurial mailing list