Peter Williams's Home Pagequilt and the mq extension to Mercurial (hg) are tools for managing a series of patches by keeping track of the changes each patch makes. Patches can be applied, un-applied, refreshed, etc. gquilt is a PyGTK GUI wrapper for quilt and mq now hosted at sourceforge with a home page here.