The upgrade to Bazaar 1.13.1 broke the Trac-Bzr plugin and of course Tom's Project Utility. I found a fix for my program quickly which was a bit surprising. So far haven't had the same luck with the Trac-Bzr plugin. I doubt the problem has gone unnoticed, since Trac crashes hard when you try to browse the source repository. This isn't a subtle bug.
Of course, I only discovered the problem because I needed Tom's Project Utility to create a new personal project. Its an absolute truth that software which is never used, can never fail. ;-)
Showing posts with label tomsprojectutil. Show all posts
Showing posts with label tomsprojectutil. Show all posts
Thursday, April 2, 2009
Wednesday, February 4, 2009
Needed A Break
Today, I decided I needed a break from the the LAMP server project. Its an important project since it might be the only income I generate this month, but I was burying myself in the work, to the point that I was forgetting to eat! Last Monday, I heated my supper around 7pm while I ate a salad. The next morning I found my supper still in the microwave! Never even noticed I missed eating the meal, but it did explain why I was feeling so run down at bed time.
Although I took it easy, it wasn't a holiday. I still had work to do. I caught up with some paper work and went to the bank to make some deposits. In the afternoon, I worked on some personal projects.
I finished the changes on Tom's Project Utility, which enables it to create and remove the Bazaar source code repository. In its current form the utility is at a dead end. The next functions I want add, all require root privileges which makes everything more complicated, especially unit testing. I need to rethink the design before any new development can occur.
With the new functionality in place, I created a new project called Tom's TV Utility, which will eventually manage my Internet TV download tasks. I created a Trac wiki page which describes the manual process. From those notes I hope to find simple jobs that can be automated immediately. Very much in the early stages, but it is a start.
Although I took it easy, it wasn't a holiday. I still had work to do. I caught up with some paper work and went to the bank to make some deposits. In the afternoon, I worked on some personal projects.
I finished the changes on Tom's Project Utility, which enables it to create and remove the Bazaar source code repository. In its current form the utility is at a dead end. The next functions I want add, all require root privileges which makes everything more complicated, especially unit testing. I need to rethink the design before any new development can occur.
With the new functionality in place, I created a new project called Tom's TV Utility, which will eventually manage my Internet TV download tasks. I created a Trac wiki page which describes the manual process. From those notes I hope to find simple jobs that can be automated immediately. Very much in the early stages, but it is a start.
Sunday, January 11, 2009
Bazaar API
I've been poking around in the Bazaar API to learn how I could create repositories from my TomsProjectUtility program. The easiest way to do this would be to simply run the bzr utility in a sub-process, but what fun would that be? Since my program and Bazaar are both written in Python, I felt it would be more interesting to use the Bazaar API directly. Running a Bazaar command is easy. Each command is a class with a run() method with takes the same arguments that you pass on the command line.
Writing a unit test for my application code proved more challenging. My first attempt used the equivalent of a "bzr check" command but it does not provide enough detail for a complete test. I had to make sure that my application creates a Bazaar shared repository as well. I had to dig a little deeper in into how "bzr check" works to figure out how to test for the shared repository but it was worth it. I now have everything that my utility needs to create the Bazaar repository automatically.
Unfortunately, I ran out of time today so actual implementation will have to wait a little longer.
Writing a unit test for my application code proved more challenging. My first attempt used the equivalent of a "bzr check" command but it does not provide enough detail for a complete test. I had to make sure that my application creates a Bazaar shared repository as well. I had to dig a little deeper in into how "bzr check" works to figure out how to test for the shared repository but it was worth it. I now have everything that my utility needs to create the Bazaar repository automatically.
Unfortunately, I ran out of time today so actual implementation will have to wait a little longer.
Sunday, December 28, 2008
Code Cleanup
I was a little more productive today and managed to do some code cleanup on a personal project, TomsProjectUtil, which I use to create my project management environments. Code cleanup is never fun but is always necessary, especially before adding new functionality. One of the new features will call the chown() function which requires root privileges. However running as root introduces other problems so I'm going slowly. I'm hoping that I'll think of another way to do this so I can avoid running as root, but so far it seems the easiest approach.
Thursday, December 11, 2008
Bazaar
I've been using the Bazaar version control system for all my projects for a while now. I'm not sure why I chose Bazaar. It is not the best one by any standard but it feels like it is the right one. Not a very technical reason, I know. I think the clincher was that Bazaar versions directories, whereas the competition (Mercurial, Git) did not the last time I checked. Its funny how that simple capability seemed to be important.
I want to create a Bazaar repository from a utility I wrote, called TomsProjectUtil. (It is hard to come up with good names!) The utility creates project environments based on Trac, Bazaar, and PostreSQL, and Apache. Currently the Bazaar repository must be created manually and I would like to to automate that step. The obvious method is to run the bzr program in a sub-process but, since both programs are written in Python, I can hopefully call hooks inside Bazaar and avoid starting another interpreter. I've only just started investigating how to do this, so it is still a work in progress.
I want to create a Bazaar repository from a utility I wrote, called TomsProjectUtil. (It is hard to come up with good names!) The utility creates project environments based on Trac, Bazaar, and PostreSQL, and Apache. Currently the Bazaar repository must be created manually and I would like to to automate that step. The obvious method is to run the bzr program in a sub-process but, since both programs are written in Python, I can hopefully call hooks inside Bazaar and avoid starting another interpreter. I've only just started investigating how to do this, so it is still a work in progress.
Subscribe to:
Posts (Atom)
