Sunday, September 25, 2005

Usertags fun

I just spent the afternoon playing around with usertags and the other recent BTS changes. It looks like a really useful addition to debbugs, and I'm sure we'll see a lot of interesing uses pop up. I immediately went and used it to mark bugs that have been fixed in the aptitude SVN by using a quick-and-dirty Python script to extract them from the ChangeLog; with some help from AJ, I even came up with a URL that separates these bugs out from the completely unresolved ones.

So that was pretty easy. Having done this, the next logical thought was, of course, "if I can extract bug numbers from the ChangeLog on my computer, couldn't an SVN hook script do the same thing?" A bit of hacking around later, I now have a script that does exactly this. To use it, download it and (optionally) the sample configuration file, and then add the following line to your post-commit hook:

path-to-svntag.py "$1" "$2" path-to-svntag.conf

The script looks for text like "Closes: #nnnnnn" in a file called "changelog" and sends appropriate tagging messages to the BTS when it's spotted.

5 Comments:

At 2:25 AM, Anonymous Anonymous said...

There's already a conoical tag for fixed-in-svn: pending. No need to use usertags.

The tagpending script already tags stuff based on the changelog. It's been in Debian in devscripts for some time.


-- Joey Hess

 
At 9:33 AM, Blogger dburrows said...

Is pending really appropriate, though? Its documentation says:

A solution to this bug has been found and an upload will be made soon.

Stuff that's fixed in SVN is not necessarily going to have an upload "soon", and I've seen at least one person get confused by this (a few days ago there was a thread on -devel asking if a package was maintained, due to a bug that had been tagged "pending" for a long time).

At a quick glance, the tagpending script isn't appropriate for my uses, because it only parses debian/changelog and blows up if it's not being run in a Debian package's root directory. It also relies on the changelog being in the format of a Debian changelog, which the upstream SVN changelog for aptitude is not. The file location is easy to hack around, but the file format might be a bit trickier. In addition, tagpending doesn't look like it could be run as an SVN hook script without some modification or wrapping.

...so all in all, I think I did not quite reinvent the wheel :-).

 
At 8:04 PM, Blogger oakleyses said...

uggs outlet, uggs on sale, ray ban sunglasses, ray ban sunglasses, louis vuitton, michael kors outlet online, oakley sunglasses wholesale, christian louboutin outlet, louis vuitton, uggs outlet, louis vuitton outlet, polo outlet, prada handbags, nike free, chanel handbags, longchamp outlet, michael kors outlet, replica watches, louis vuitton outlet, oakley sunglasses, michael kors outlet online, prada outlet, michael kors outlet online, longchamp outlet, burberry handbags, michael kors outlet, kate spade outlet, ray ban sunglasses, longchamp outlet, louis vuitton outlet, oakley sunglasses, nike air max, oakley sunglasses, replica watches, ugg boots, polo ralph lauren outlet online, ugg boots, gucci handbags, jordan shoes, cheap oakley sunglasses, michael kors outlet online, christian louboutin uk, burberry outlet, tory burch outlet, tiffany and co, christian louboutin shoes

 
At 8:06 PM, Blogger oakleyses said...

michael kors, nike tn, ralph lauren uk, abercrombie and fitch uk, north face uk, ray ban pas cher, nike free uk, lululemon canada, michael kors, true religion jeans, coach outlet, coach outlet store online, hollister uk, sac longchamp pas cher, vans pas cher, nike blazer pas cher, louboutin pas cher, nike air max uk, michael kors pas cher, nike free run, nike air max uk, new balance, sac hermes, jordan pas cher, true religion outlet, replica handbags, nike roshe, longchamp pas cher, guess pas cher, true religion outlet, north face, polo ralph lauren, coach purses, hollister pas cher, oakley pas cher, timberland pas cher, air max, polo lacoste, nike air force, nike roshe run uk, burberry pas cher, converse pas cher, nike air max, sac vanessa bruno, mulberry uk, hogan outlet, michael kors outlet, true religion outlet, ray ban uk, kate spade

 
At 8:10 PM, Blogger oakleyses said...

doudoune moncler, pandora uk, moncler outlet, vans, converse outlet, montre pas cher, louis vuitton, moncler, moncler, canada goose, canada goose outlet, ugg uk, links of london, barbour uk, supra shoes, replica watches, lancel, nike air max, moncler, moncler, moncler outlet, coach outlet, wedding dresses, canada goose outlet, pandora jewelry, karen millen uk, ugg, marc jacobs, juicy couture outlet, converse, moncler uk, louis vuitton, ugg pas cher, swarovski, pandora jewelry, gucci, canada goose, canada goose uk, ugg,uggs,uggs canada, pandora charms, juicy couture outlet, louis vuitton, louis vuitton, ray ban, ugg,ugg australia,ugg italia, canada goose jackets, swarovski crystal, canada goose, hollister, thomas sabo, canada goose outlet, toms shoes

 

Post a Comment

<< Home