How to get your main branch on a new machine and then get it in sync

Asked by Vivek Sharma on 2009-07-23

Hi,

I just had to do a clean install (machine crashed). I read the bazaar documentation, it says about few other things, but nothing like if you are the owner of a project, and you loose your code from the local machine, but thankfully you have at launchpad(hosted).

what i did was
- bzr branch https://code.launchpad.net/~sharmavivek/reset/main
this puts the code in /home/myName/reset/main. but i would like it in /home/myName/reset as i had it earlier for that i did...

1. made a reset directory in my home
2. bzr init
3. bzr pull https://code.launchpad.net/~sharmavivek/reset/main

this gave me all the code, all the directories in my local reset folder. Then i added a file in one folder and did

4. bzr add
5. bzr commit
but now,

6. bzr push

give me the follow error
< Cannot lock LockDir(http://bazaar.launchpad.net/%7Esharmavivek/reset/main/.bzr/branch/lock): Transport operation not possible: http does not support mkdir() >

how do i now add/edit file locally and push/upload to the same main branch.

thanks

Question information

Language:
English Edit question
Status:
Solved
For:
Launchpad itself Edit question
Assignee:
No assignee Edit question
Solved by:
Vivek Sharma
Solved:
2009-07-24
Last query:
2009-07-24
Last reply:
2009-07-24
Tim Penhey (thumper) said : #1

You pulled from https://code.launchpad.net/~sharmavivek/reset/main, which is not really a bazaar branch location. It does however have a redirect to the http://bazaar.launchpad.net/~sharmavivek/reset/main branch location. When you tried to push, it fails as we don't support push over http.

The way to fix this is to go:
  bzr push --remember lp:~sharmavivek/reset/main

To override what bzr remembers for that branch.

When branching from Launchpad, use the short "lp" name rather than the location of the branch in the web application.

https://code.launchpad.net/~sharmavivek/reset/main has a section that says:
   Get this branch: bzr branch lp:~sharmavivek/reset/main

Vivek Sharma (sharmavivek) said : #2

The way to fix this is to go:
  bzr push --remember lp:~sharmavivek/reset/main

> this is giving me Error--
Permission denied (publickey).
bzr: ERROR: Connection closed: please check connectivity and permissions

Tim Penhey (thumper) said : #3

Have you done:
  bzr lp-login sharmavivek

Vivek Sharma (sharmavivek) said : #4

I deleted my old directory,
- made an empty reset dir
- cd reset
- bzr init "on the empty dir"
- bzr commit
- bzr pull http://bazaar.launchpad.net/~sharmavivek/reset/main

added a file trying to push/upload. its is not work
- bzr push

then did
- bzr push http://bazaar.launchpad.net/~sharmavivek/reset/main
bzr: ERROR: Cannot lock LockDir(http://bazaar.launchpad.net/%7Esharmavivek/reset/main/.bzr/branch/lock): Transport operation not possible: http does not support mkdir()

- bzr push --remember lp:~sharmavivek/reset/main
this is giving me Error--
Permission denied (publickey).
bzr: ERROR: Connection closed: please check connectivity and permissions

Vivek Sharma (sharmavivek) said : #5

hi Tim,

thanks for you time.
yes i did logged into
> bzr lp-login sharmavivek

this works fine, but all the problem remains as it is.

vks@vksTP:~/reset$ bzr push --remember lp:~sharmavivek/reset/main
Permission denied (publickey).
bzr: ERROR: Connection closed: please check connectivity and permissions

vks@vksTP:~/reset$ bzr push http://bazaar.launchpad.net/~sharmavivek/reset/main
bzr: ERROR: Cannot lock LockDir(http://bazaar.launchpad.net/%7Esharmavivek/reset/main/.bzr/branch/lock): Transport operation not possible: http does not support mkdir()

Tim Penhey (thumper) said : #6

It sounds like you don't have the local SSH key registered with Launchpad.

Tim Penhey (thumper) said : #7

Also:

   bzr push http://bazaar.launchpad.net/~sharmavivek/reset/main

Will *never* work. We don't support push via http.

Vivek Sharma (sharmavivek) said : #8

i can see my ssh key on my-user page at launchpad, how do i add it to bazaar

bzr+ssh <copy paste the key> is it.

Vivek Sharma (sharmavivek) said : #9

I got it.
Made a new key, deleted the old key from Launchpad, copy pasted the new key.

did
- bzr push --remember lp:~sharmavivek/reset/main

it worked

Aaron Bentley (abentley) said : #10

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Tim Penhey wrote:
> Question #77894 on Launchpad Bazaar Integration changed:
> https://answers.edge.launchpad.net/launchpad-code/+question/77894
>
> Tim Penhey proposed the following answer:
> Also:
>
> bzr push http://bazaar.launchpad.net/~sharmavivek/reset/main
>
> Will *never* work. We don't support push via http.

We might support bzr push
https://bazaar.launchpad.net/~sharmavivek/reset/main it the distant
future, though. (This would use the smart server, of course.)

Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkppvZYACgkQ0F+nu1YWqI0ozwCggyHh4HP1PW6Q6gcX9L/WZdmx
wQYAni2GtbcO0U95dGcBex9Ymx9+xwTu
=4mcP
-----END PGP SIGNATURE-----