How to chnage the URL after a branch location change

Jonathan Lange jml at mumak.net
Tue Oct 6 15:41:58 BST 2009


On Tue, Oct 6, 2009 at 3:34 PM, John Yates <jyates at netezza.com> wrote:
> Jonathan Lange wrote:
>
>> >    bzr init-repo --trees project
>> >    cd project
>> >    bzr branch <URL> upstream
>> >    bzr branch upstream local
>> >    ... work
>> >    ... then one day the original <URL> moves to another location
>> >
>> > How do I make the 'upstream' to point to a new <URL> location for pull
>> > operations?
>>
>> cd upstream
>> bzr pull --remember <NEW_URL>
>
> Interesting that recording a <NEW_URL> is exposed as a side effect of pull.  What if I receive notification of a changed URL and want to act on that information before it slips my mind but am not ready to perform a pull?  Am I reduced to piercing the abstraction and editing .bzr/branch/branch.conf directly?
>

Why aren't you ready to perform a pull?

If you have changes in progress, I find that:
  bzr shelve --all
  bzr pull --remember <NEW_URL>
  bzr unshelve

jml



More information about the bazaar mailing list