Re: bzr actions

From: Amos Jeffries <squid3@dont-contact.us>
Date: Tue, 18 Mar 2008 02:03:47 +1300

Henrik Nordstrom wrote:
> On Mon, 2008-03-10 at 15:32 +1300, Amos Jeffries wrote:
>> Is there a nice easy way in bzr of retrieving the -r # (of the
>> ancestor!) when the branch was last 'branched'/updated off its ancestor?
>> suitable for a bzr revert -r # ./Makefile.in (and others)
>
> -r submit: should work I think.
>

That works perfectly. Here is the bzrcleanpatch script I'm using...

For now it just cleans the branch of new additions to the auto-tools
files and submits to squid-dev for bundebuggy to manage the rest.

I've tested this running bootstrap.sh and the resulting configure.
It cleanly removes any changes to the versioned auto-tools files and
creates a patch of the actual code changes. Can either submit to
squid-dev (default) or given a name creates a <name>.patch file of
alterations for applying manually.

Amos

-- 
Please use Squid 2.6STABLE17+ or 3.0STABLE1+
There are serious security advisories out on all earlier releases.

#!/bin/bash
#
#
echo " Omitting auto-generated files ... "
bzr revert -r submit: {,*/,*/*/,*/*/*/,*/*/*/*/}Makefile.in aclocal.m4 cfgaux/* configure || exit 1
echo ""

echo " Omitting alterations to Third-Party configurations ..."
bzr revert -r submit: lib/*/aclocal.m4 lib/*/configure lib/*/cfgaux/* || exit 1
echo ""

echo " Patch Status: ..."
bzr status || exit 1
echo ""

if [ "${1}" != "" ]; then
        echo " Generating PATCH file ${1}.patch ..."
        bzr diff -r submit: >./${1}.patch
        echo ""
else
        # Generate patch and send to squid-dev.
        echo " Generating and submitting MERGE patch for squid-dev ..."
        bzr send --mail-to=squid-dev@squid-cache.org
fi
Received on Mon Mar 17 2008 - 07:02:57 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Apr 01 2008 - 13:00:10 MDT