/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to tools/packaging/update-changelogs.sh

  • Committer: John Arbash Meinel
  • Date: 2009-06-01 18:13:46 UTC
  • mto: (4360.4.11 1.15-pack-source)
  • mto: This revision was merged to the branch mainline in revision 4396.
  • Revision ID: john@arbash-meinel.com-20090601181346-2fxsd3o977j5bj5b
Add tests that ensure we can fetch branches with ghosts in their ancestry.

Also added similar tests when stacking is involved.
Then fixed both the StreamSource and GroupCHKStreamSource to handle these cases.
Andrew's fix didn't work in the case of Stacked, as it only worked if the
initial fetch created a fully complete target. Not if there was a ghost
involved with the transmitted revisions, and stacking was also involved.

Basic fix is just to allow absent records during 'get_stream_for_missing_keys',
the StreamSink is then responsible for ensuring no content is actually missing.

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
    exit 1
8
8
fi
9
9
 
10
 
if [ "x$VERSION" = "x" ]; then
 
10
if [ "x$1" = "x" ]; then
11
11
    echo "Missing version"
12
12
    echo "You want something like:"
13
 
    echo "  VERSION=1.6~rc1-1~bazaar1 update-changelogs.sh"
 
13
    echo "  update-changelogs.sh 1.6~rc1-1~bazaar1"
14
14
    echo "or"
15
 
    echo "  VERSION=1.6-1~bazaar1 update-changelogs.sh"
 
15
    echo "  update-changelogs.sh 1.6-1~bazaar1"
16
16
    exit
17
17
fi
18
 
 
19
 
if [ -z "$1" ]; then
20
 
    MSG="New upstream release"
21
 
else
22
 
    MSG=$1
23
 
fi
 
18
VERSION=$1
24
19
 
25
20
for DISTRO in $UBUNTU_RELEASES; do
26
21
    PPAVERSION="$VERSION~${DISTRO}1"
27
22
    (
28
23
        echo "Updating changelog for $DISTRO"
29
 
        cd "$PACKAGE-$DISTRO" &&
30
 
            dch -v $PPAVERSION -D $DISTRO -c changelog "$MSG." &&
31
 
            bzr commit -m "$MSG: $PPAVERSION"
 
24
        cd "packaging-$DISTRO" &&
 
25
        dch -v $PPAVERSION -D $DISTRO -c changelog 'New upstream release.' &&
 
26
        bzr commit -m "New upstream release: $PPAVERSION"
32
27
    )
33
28
done