Showing posts with label Bazaar. Show all posts
Showing posts with label Bazaar. Show all posts

Monday, 9 May 2011

Bazaar on sourceforge.net

(sorry if you get this twice, blogspot made it disappear..)

I've bean looking for a place to host a modular project which is being version controlled with Bazaar. I would have loved to use Launchpad, but I can't because of the following:
  1. Launchpad only allows one level of branches (no hierarchy). My project is made up of a lot of sub-projects: I have a main branch which controls the sub-projects as bzr-externals.
  2. Launchpad does not have a nice project wiki or any custom web content.
I saw that sourceforge.net now supports Bazaar, but I was a bit worried when I saw on their wiki that they only support Bazaar version 1.10 . It turns out that it is thankfully only an outdated doc:
[me@shell-21002 ~]$ bzr --version
Bazaar (bzr) 2.1.1
Python interpreter: /usr/bin/python 2.4.3
Python standard library: /usr/lib64/python2.4
Platform: Linux-2.6.18-...
(I don't seem to have rights to correct the wiki and I could not google the current version, so I'm documenting it here for you.)

I did test that I could upload nested branches. But unfortunately the code browsing tool on Sourceforge (loggerhead) does not display the nested branches :( Hopefully that is fixable..
Update: Alexandre Garnier kindly noted that there is a bug report for it.

Wednesday, 13 October 2010

Overheating laptop

A couple of weeks ago I could reliably get my laptop to overheat by just running the bazaar unit tests.

By googling I found that it could help to clean out the fan,
so I opened it a bit but gave up because I didn't have time to open it up completely.

Recently it got much worse, I could not even open eclipse without having a household fan directed at my laptop.

I decided today is the day. I had to remove about 30 screws and the processing unit heat sinks to get at them little radiators. They were a bit filthy of coarse, but its all cleaned now. I had to file off 1mm of a 3mm flat screwdriver bit so that I can unscrew about 11 2mm hexagonal screws.. . One screw got lost somewhere, I hope its not stuck somewhere where it can cause problems - that must be what doctors think if they are missing something after performing surgery.

It seems much better now, the fan doesn't even come on so often any more.

Monday, 30 November 2009

pycurl does not like bad certificates

I keep on hitting this once in a blue moon (maybe after dist-upgrading), pushing to a smart server over https I get the following:

bzr: ERROR: Connection error: curl connection error (server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none)        
on https://mycompany/bzr/aprojectrepo/mybranch/.bzr/smart


And every time it takes me some time to figure out how to fix it, so I'm noting it here for future reference:
* remove python-pycurl
* or use "http+urllib://"

https://bugs.launchpad.net/bzr/+bug/365874

I suppose I should help fix this, but I don't see myself getting round to that any time soon.

Wednesday, 8 July 2009

explore bazaar

The up an coming bzr explorer is really promising to become: version control for human beings!

I tried to do a commit in it today and the following was very nice:
  • I can have the diff and the commit windows open simultaneously to be able to referback. (this was a problem before for me because both wants to lock to branch)
  • The auto-completion of words and filenames is awesome.
I tried to take a snapshot but [fn]+[prt_sc] launched infinite ksnapthots :( (but thats another story). After some reboots, I tried again:



  • trying to find related revisions is almost impossible on the commandline (i.e. it took too long), but its so nice with qlog.
  • The commit progress is also ultra cool

Wishlist:
  • Save draft commit messages eg. every 30 seconds (like gmail). Anything can happen while or after you typed the message and before you hit commit eg. a power failure.
  • In my case, my computer basically crashed when I tried to make a snapshot and it launched the infinite ksnapshots. (bonus points for a [save now] button!)
  • [esc] should close qdiff windows
  • qannotate
    • ctrl+G should go to a line (like gannotate)
    • ctrl+F should start a search (like gannotate)

So far I made an alias to be able to launch it while at the branch in a terminal:
alias be='bzr explore . &'
But I suspect I'll have a bzr explore icon on my application launcher soon.

Version control is getting so cool that I'm be tempted to quit coding and become a full-time version-controllist. :-P whooa endorphin rush..

Monday, 11 May 2009

Bazaar on sourceforge.net

I've bean looking for a place to host a modular project which is being version controlled with Bazaar. I would have loved to use Launchpad, but I can't because of the following:
  1. Launchpad only allows one level of branches (no hierarchy). My project is made up of a lots of sub-projects: I have a main branch which controls the sub-projects as bzr-externals.
  2. Launchpad does not have a nice project wiki or any custom web content.

I saw that sourceforge.net now supports Bazaar, but I was a bit worried when I saw on their wiki that they only support Bazaar version 1.10 . It turns out that it is thankfully only an outdated doc:
[me@shell-21002 ~]$ bzr --version
Bazaar (bzr) 2.1.1
Python interpreter: /usr/bin/python 2.4.3
Python standard library: /usr/lib64/python2.4
Platform: Linux-2.6.18-...

(I don't seem to have rights to correct the wiki and I could not google the current version, so I'm documenting it here for you.)

I did test that I could upload nested branches. But unfortunately the code browsing tool on Sourceforge (loggerhead) does not display the nested branches :( Hopefully that is fixable..

Thursday, 4 December 2008

Whoohoo, I'm a hero today!

In order to answer somebody's question today,
I figured out how to use bzr replay
this made me his hero for a day,
and this in turn has made *my* day!

https://answers.edge.launchpad.net/bzr/+question/53349
Markus Korn confirmed that the question is solved:
Thanks a lot Marius, this initial commit did the trick,
you are my hero of the day ;)

Saturday, 11 October 2008

my bash setup

Here are some things I put in ~/.bashrc or /etc/bash.bashrc to make my life easier:

# When using bash, I use ctrl+r a lot to find commands I executed recently.
# I found that I remember my commands for much longer than bash does,
# so I increased my bash's memory:
export HISTFILESIZE=3000 # the bash history should save 3000 commands
export HISTCONTROL=ignoredups # don't put duplicate lines in the history.
export HISTCONTROL=ignoreboth # ignore same sucessive entries.
# (from http://www.novell.com/coolsolutions/tools/17142.html)

# I like to have a colour prompt with my user, the machine I'm on and the full
# path. Its a bit long so I put it on 2 lines.
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;33m\]\w\[\033[00m\]>\n\$ '

# enable bzr command auto completion
. /opt/bzr/bzr.current/contrib/bash/bzr.simple

# bzr aliasses
alias bt='./bzr --no-plugins selftest'
alias bd='bzr diff'
alias bl='bzr log'
alias bp='bzr pull -v |less'
alias bm='bzr missing |less'
alias bs='bzr status'

# bzr functions, which cant be done by alias or bzr's alias
bh(){
#the $@ inserts all the parameters you pass in
bzr help "$@" |less
}

bcd(){
bzr cdiff "$@" | less -R
}