git-svn, copies and empty dirs

Up to now, when working on sunrise with git-svn, I faced two minor issues that it didn’t handle nicely.

a) When copying stuff from sunrise/ to reviewed/ so that it goes out via layman, the file was added although it was merged.

b) It left empty dirs behind when I kicked an app (as it went over to gentoo-x86)

After reading a bunch of mailinglists and forums posts, I finally had a working solution. Just add these lines to .git/config file:

[diff]
renames = copies
[svn]
findcopiesharder = 1
rmdir = 1

to view packages or not to view packages — that is, urm, a gentoo problem?

So you read it in the title. Yes it sounds weird, by intention. When our primary site for package viewing went down some time ago, I didn’t notice much. It was more a good friend of mine asking me if I know when it will be back. Okay, it was down for three days so no big deal if something serious happened. You know the rest of the story or can read it up on the bug (just don’t comment there unless real help offered).

But why am I writing about this here? Well, also some time ago, araujo and me started something called gui project. Main target was obviously getting some nice gui for our day-to-day tasks. I don’t really know where (maybe some mailinglist) it came to my ears that our obviously loved packages site was down more a month. So hey, we’re a gui project, I more or less have finished my previous tinderbox thingy (just minor stuff open). So some spare time available. I never did a webpage yet with a python based framework so I decided to give some of them a try and if I would find a nice and not bloated one, this could be worth a try.

Two days of trying different ones later, I finally got settled with cherrypy and genshi (there’s a nice tutorial on the genshi homepage if you’re curious now)..

After some thinking about databases and stuff, finally got a db generator going resulting in data useful for such a site. That’s the moment where I started to git the code and let the show begin. In the meantime I was on holiday for more than a week so you might notice some inactivity in the timeline. Anyway, at least startpage and some filtering works. See http://tinyurl.com/2fq9dw for working features of the live version at http://packages.gentooext.net

It’s a starting project, mind you, though basics are working now, more stuff to come. If you have questions or comments, feel free to join irc.freenode.net #gentoo-guis , cookies are on topic 😉