Page 1 of 1

commiting to trunk

Posted: Sat Sep 25, 2010 15:30
by snowdrop
The following worked for me when registering a new dummy user. I fetched the whole project from scratch, I registered my key, I also joined and was approved in the wtdevs-team, I created a dir, and I committed it to the WT repo on Launchpad. R

1.

Code: Select all

bzr lp-login wttestuser
Identifies you to launchpad, if you have registered SSH-key before trying this. I have no idea what this step is actually good for and I only do it as a precaution. bzr is the most mute tool on planet earth, so there's no easy way figuring anything out. :roll:

2.

Code: Select all

bzr branch lp:wtactics
Make a real/total(?) checkout. This seems to be more extensive than the bzr checkout command. bzr branch supposedly allows you to work offline, while bzr checkout doesn't.

I recently used Nautilus (properties of dir) to compare the branch I checked out with bzr branch with the branch I checked out with bzr checkout --lightweight: They are both 380 mb large, thus I see no difference between them in size at least.

3.
Enter your local copy of the trunk and create some test content, i.e. a dir:

Code: Select all

mkdir testcontent
4.
The rest is...
bzr add
brz commit
bzr push --remember lp:~wtdevs/wtactics/trunk
From there on just bzr push should be enough.

Ravenchild, Tell me how it goes - your user is added to the correct group, so it should all work out after you have registered your SSH-key with launchpad. Also see my still very inconclusive >> http://chaosrealm.net/w/Using_bazaar

Feel free to share your findings in that document... I've been at this for 5h now and must take a break from bzr before going insane :P

Re: commiting to trunk

Posted: Mon Sep 27, 2010 04:54
by snowdrop
Oki, thanks to Q_x we now know how to get Bazaar Explorer fully working in Windows.

I also managed to get help from a guy on #bzr and we also know hot to make a "checkout --lightweight" that has working commits. I've included the instructions in the wiki.

Re: commiting to trunk

Posted: Fri Oct 08, 2010 14:08
by Ravenchild
Just for the record: I get this error message after making a new checkout and following your instructions.

Code: Select all

bzr: ERROR: Cannot lock LockDir(http://bazaar.launchpad.net/~wtdevs/wtactics/trunk/.bzr/branch/lock): Transport operation not possible: http does not support mkdir()
I will see if I can solve this myself but help is appreciated of course :)

edit: HTTP does indeed not support mkdir. So I need to use bzr+SSH as protocol. This should be the default when

Code: Select all

bzr launchpad-login 
is set. I don't understand why he still uses HTTP :(

Re: commiting to trunk

Posted: Fri Oct 08, 2010 17:33
by snowdrop
Redo it all from the start and follow these steps (from http://chaosrealm.net/w/Using_bazaar). The above original post is less up to date than our wiki:
  1. bzr checkout --lightweight bzr+ssh://bazaar.launchpad.net/~wtdevs/wtactics/trunk/
  2. bzr add
  3. bzr commit

Re: commiting to trunk

Posted: Fri Oct 08, 2010 19:59
by Ravenchild
Cool! It finallly works! I didn't use the following command before:

Code: Select all

bzr switch lp:~wtdevs/wtactics/trunk/ 
I'll start hacking now :D

Re: commiting to trunk

Posted: Fri Oct 08, 2010 20:20
by snowdrop
Ravenchild wrote:Cool! It finallly works! I didn't use the following command before:

Code: Select all

bzr switch lp:~wtdevs/wtactics/trunk/ 
I'll start hacking now :D
Yeah. the switch-command is probably needed when the bzr branch lp:wtactics is done. I believe the branch lp:wtactics sets it to http for some reason, but this is just my guess...