[PATCH 1 of 1 RFC] tag: abort if not at a branch head

Steve Borho steve at borho.org
Mon Dec 6 18:27:37 CST 2010


On Mon, Dec 6, 2010 at 6:14 PM, Matt Mackall <mpm at selenic.com> wrote:
> On Mon, 2010-12-06 at 13:56 -0600, Kevin Bullock wrote:
>> # HG changeset patch
>> # User Kevin Bullock <kbullock at ringworld.org>
>> # Date 1291665075 21600
>> # Node ID f52e752c6d5f90352bb29ba6c2543656f6e4531e
>> # Parent  8c6b7a5f38c4585b1b2c2ceaffa8023f36a18479
>> tag: abort if not at a branch head
>>
>> Since it's usually only desirable to make tag commits on top of branch
>> heads, abort if the working dir parent is not a branch head. -f/--force
>> may be passed to commit at a non-head anyway.
>
> I'm hard-pressed to think of any realistic use cases for committing a
> tag at somewhere other than a branch head. Can anyone think of one?

The only possible use case I could come up with was to tag a new
branch start, but for that the user can use tag -f, as in:

hg branch foo
hg tag -f start-foo

-- 
Steve Borho


More information about the Mercurial-devel mailing list