Cannot create and close a branch in a single commit.

Sebastian Unger sebastian.unger at taitradio.com
Mon Jul 28 02:43:11 UTC 2014


I didn't change my mind. I want the branch to exist but be closed.


On Mon, Jul 28, 2014 at 2:42 PM, Jensen, Aaron <ajensen at webmd.net> wrote:

>  The `hg branch` command only marks the current uncommitted changeset as
> belonging to a branch. It only creates the branch once you commit.
>
>
>
> If you changed your mind and don’t want your testBranch to exist, update
> to a different revision, then back.
>
>
>
>
>
> *From:* mercurial-bounces at selenic.com [mailto:
> mercurial-bounces at selenic.com] *On Behalf Of *Sebastian Unger
> *Sent:* Sunday, July 27, 2014 6:57 PM
> *To:* mercurial at selenic.com
> *Subject:* Cannot create and close a branch in a single commit.
>
>
>
> Hi Guys,
>
> I expected the following sequence of commands to work. I'm pretty sure
> they used to work in an earlier version of mercurial. Is this intentional
> or a regression? If the latter how do I go about raising a bug report for
> this. If the former, would you consider adding a -f to the commit command
> that allows this?
>
>
>
>
>
> *REPO=$(mktemp -d) hg init $REPO hg branch -R $REPO testBranch hg ci -R
> $REPO --close-branch -m "Creating and closing branch."*
>
> Result with mercurial 2.6.3 (as shipped with Ubuntu 13.10):
> *abort: can only close branch heads*
>
>
>
> Cheers,
>
> --
> *Sebastian Unger*
> *Senior Software Engineer*
> Tait Communications
> Email: sebastian.unger at taitradio.com <sebastian.unger at taitradio.com>
>
>
> www.taitradio.com
>
>
>  ------------------------------
>
> This email, including any attachments, is only for the intended recipient.
> It is subject to copyright, is confidential and may be the subject of legal
> or other privilege, none of which is waived or lost by reason of this
> transmission.
>
> If you are not an intended recipient, you may not use, disseminate,
> distribute or reproduce such email, any attachments, or any part thereof.
> If you have received a message in error, please notify the sender
> immediately and erase all copies of the message and any attachments.
>
> Unfortunately, we cannot warrant that the email has not been altered or
> corrupted during transmission nor can we guarantee that any email or any
> attachments are free from computer viruses or other conditions which may
> damage or interfere with recipient data, hardware or software. The
> recipient relies upon its own procedures and assumes all risk of use and of
> opening any attachments.
>   ------------------------------
>



-- 
*Sebastian Unger*
*Senior Software Engineer*
Tait Communications
Email: sebastian.unger at taitradio.com <sebastian.unger at taitradio.com>


www.taitradio.com

-- 

------------------------------
This email, including any attachments, is only for the intended recipient. 
It is subject to copyright, is confidential and may be the subject of legal 
or other privilege, none of which is waived or lost by reason of this 
transmission.
If you are not an intended recipient, you may not use, disseminate, 
distribute or reproduce such email, any attachments, or any part thereof. 
If you have received a message in error, please notify the sender 
immediately and erase all copies of the message and any attachments.
Unfortunately, we cannot warrant that the email has not been altered or 
corrupted during transmission nor can we guarantee that any email or any 
attachments are free from computer viruses or other conditions which may 
damage or interfere with recipient data, hardware or software. The 
recipient relies upon its own procedures and assumes all risk of use and of 
opening any attachments.
------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20140728/0be29fc5/attachment-0002.html>


More information about the Mercurial mailing list