Posts Tagged ‘mymeeting’

Committing to SVN using Bazaar

// December 22nd, 2009 // No Comments » // open source, tech

Ejat and I were working on how to do the above for MyMeeting codes and we did it! I have asked ejat to put this down in writing in his blog, but sadly the blog is not available anymore (alaa ejat bukan susah sangat cari hosting punnnnn.. susah2 ko host sendiri jek kat umah :P )

MyMeeting is also on Launchpad that makes use of Bazaar. We wanted to find a way how to send changes to both its main repo (using SVN) and Launchpad.

So we’ve been using SVN for MyMeeting hosted at OSCC. A typical way for us would be like this.

$ svn co https://svn.oscc.org.my/mymeeting/trunk trunk
$ cd trunk
(hack hack hack...)
$ svn status #see our changes
$ svn ci -m 'added feature ABC' #commit to SVN repository

To use Bazaar to work with SVN repo, you have to install bzr and bzr-svn. Excellent doc on bzr-szv is here.

$ sudo apt-get bzr bzr-svn

SVN-like

Working with Bazaar, the way would be something like this.

$ mkdir dev
$ bzr init-repo --default-rich-root dev
$ cd dev
$ bzr co https://svn.oscc.org.my/mymeeting/trunk trunk
$ cd trunk
(hack hack hack...)
$ bzr update #get changes done by others
$ bzr ci -m 'added form for feature ABC' #commit to SVN repository
$ bzr push lp:mymeeting #push to Launchpad, only have to provide location once
(hack hack hack...)
$ bzr update #get changes done by others
$ bzr ci -m 'added list for feature ABC' #commit to SVN repository
$ bzr push

Decentralized Bazaar way

If we were to take advantage of Bazaar’s decentralised way of doing it (so you can work offline, for example), it’s like this.

$ mkdir dev
$ bzr init-repo --default-rich-root dev
$ cd dev
$ bzr co https://svn.oscc.org.my/mymeeting/trunk trunk #our copy of trunk
$ bzr branch trunk working #make a local branch to hack on
$ cd working
(hack hack hack...working offline)
$ bzr ci -m 'added form for feature ABC' #commit to local branch
(hack hack hack...working offline)
$ bzr ci -m 'added list for feature ABC' #commit to local branch
 
(when you get your connection back)
$ cd ../trunk
$ bzr update #get changes done by others to our copy of trunk 
$ cd ../working
$ bzr pull #pull the changes to our local branch
$ bzr status #see our changes
$ cd ../trunk
$ bzr merge ../working
$ bzr ci -m 'added feature ABC'

Personally I like the centralised approach because it’s similar to SVN. Local branch is great feature if I have to do my work offline sometimes. And while I can pick Bazaar from now on, the rest of the team doesn’t have to switch tool. That’s great!

SVN upgrade to 1.6.6

// December 17th, 2009 // No Comments » // guides, work

After being pointed out by ejat about the OSCC SVN server was being slow (or something, along the line of should upgrade to 1.5 for faster process) so I went out and check out SVN was indeed of version 1.4.2, the latest is 1.6.6.

On CentOS machine:

Stop any service that’s running httpd, svnserve, etc.

Add RPMForge repository as that’s where the latest SVN is

# i386
$ wget http://apt.sw.be/redhat/el5/en/i386/RPMS.dag/rpmforge-release-0.3.6-1.el5.rf.i386.rpm
$ rpm -i rpmforge-release-0.3.6-1.el5.rf.*.rpm

This will create /etc/yum.repo.d/rpmforge.repo file. Edit this file, change enable=0 as RPMForge contains bleeding edge, often unstable packages. You don’t want to do $ yum update accidentally and put your entire system at risk if you don’t know what you’re doing.

You may not need this but just in case, backup your SVN repo.

$ svnadmin dump /path/to/repository > dumpfile.txt

If anything goes wrong, even if you install a new copy of SVN, you can recover you data with this:

$ svnadmin create /path/to/newrepository
$ svnadmin load /path/to/newrepository < dumpfile.txt

Now check for SVN update

$ yum --enablerepo=rpmforge check-update subversion

It should display the latest version like this

subversion.x86_64    1.6.6-0.1.el5.rf  rpmforge

Then upgrade

$ yum --enablerepo=rpmforge update subversion

This will update SVN from the RPMForge.

Restart the service httpd, svnserve, etc.

What’s been keeping me busy

// October 19th, 2009 // No Comments » // lament

1. MIT http://www.ukm.my/kembangan
2. MyGOSSCON http://mygosscon.oscc.org.my
3. MyMeeting http://trac.oscc.org.my/mymeeting
4. FOSS.my http://foss.my
5. OSDC.my http://osdc.my
6. Ubuntu-MY http://www.ubuntu.com.my
7. FOSSchix.my http://fosschix.my
(more…)

An alien has invaded my place

// January 19th, 2009 // No Comments » // bookcrossing, events, open source, personal

1. abdza told me he visited the office last Friday but I went off early that day.

Alien's note

Alien's note

2. KSN’s new system is applying FOSSchix.my’s theme. OMFG. Why can’t it use default Plone theme, change the base color to purple or something.

3. Hey we got sijil penghargaan for sumbangan melaksanakan projek inovasi MyMeeting, with my name incorrectly spelled on it.

Subscribe to FOSSchix.my mailing list now

// December 18th, 2008 // 1 Comment » // open source

Alright girls, it is important that I announce this one:

Mailing list for FOSSchix.my has landed on earth

Come join and participate okay. It’s new so no activity in there yet but it’s coming! If you’re in IT, please subscribe as you’ll never know. I’m an open source chick but hey girl, no matter what OS you using, as long as you’re interested in contributing to the Malaysian open source arena, this could be the first step for you (and surprise surprise you don’t even have to be a developer to join). Come and join and make acquaintances. Learn and share knowledge.

*****************

Cool in-house bunting design using what else, Inkscape!

On another note, I want to shamelessly put this here.

Anyway, if you can’t see the url, it’s http://trac.oscc.org.my/mymeeting. Really took a huge amount of courage to put it here. So there it is…