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

Adrian Buehlmann adrian at cadifra.com
Tue Dec 7 03:53:33 CST 2010


On 2010-12-07 10:19, Dirkjan Ochtman wrote:
> On Tue, Dec 7, 2010 at 09:56, Adrian Buehlmann <adrian at cadifra.com> wrote:
>> On 2010-12-07 09:45, Dirkjan Ochtman wrote:
>>> On Tue, Dec 7, 2010 at 01:14, Matt Mackall <mpm at selenic.com> wrote:
>>>> 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?
>>>
>>> Seems sensible to me.
>>
>> Meaning...
>>
>> ... you want to abort hg tag unconditionally if parent is not a branch head?
> 
> I think requiring --force is about right.

Agreed.

> We don't go around stopping
> people from starting new heads in normal commits, do we?

We would certainly not abort commit if they'd specify --force?

But Matt's "hard-pressed" response sounded to me like he was considering
doing exactly that for 'hg tag'...

In other words, I got the impression that Matt was pondering doing:

  $ hg tag --force bla
  abort: not at a branch head

Thanks for clearing this up for me.


More information about the Mercurial-devel mailing list