bzr push mistake.
Matt Nordhoff
mnordhoff at mattnordhoff.com
Sun Feb 22 08:03:37 GMT 2009
Colin D Bennett wrote:
> On Sat, 21 Feb 2009 16:01:58 -0800
> Eric Berry <elberry at gmail.com> wrote:
>
>> Hi all.
>> I was experimenting with Bazaar, and the Centralized workflow. I made a
>> mistake when I pushed, which has created a "push branch", and I don't know
>> how to remove it.
>>
>> My central repo is hosted remotely, and I wanted to push some changes from
>> my local branch to the remote one. I wanted to see if I had to put the whole
>> URL into the bzr push command, or if I could just use the "parent branch"
>> name.
>>
>> So, I tried "bzr push parent". I saw that it created a new branch, and now
>> when I do "bzr info" I see there is a "push branch" item under the related
>> branches section.
>
> Two things:
>
> 1. You can remove the “push branch” reference on your local branch by
> removing the line starting with “push_location = ”
> in .bzr/branch/branch.conf.
>
> I think that Bazaar should allow “bzr reconfigure” or some other
> command to add, change, or remove the push_branch, parent_location,
> public_branch, and other settings since the branch.conf file it is
> very fragile.
You can change the saved push location by doing "bzr push --remember
some_new_location". (That also pushes to the new location at the same time.)
"bzr pull" has a similar option for changing the saved parent_location.
You might be able to change the public_branch through "bzr send"; I'm
not sure.
> 2. You can push to the parent branch with “bzr push :parent” ... you
> need the colon before parent.
>
> Regards,
> Colin
--
More information about the bazaar
mailing list