>>>>> "vila" == Vincent Ladeuil <[EMAIL PROTECTED]> writes:
>>>>> "stefan" == Stefan Reichör <[EMAIL PROTECTED]> writes:
<snip/>
stefan> Can you tell me a sequence of bzr shell commands that
stefan> should be implemented?
vila> #!/bin/sh -x
vila> BASE=~/src/bzr/reviews
vila> NICK=$1
vila> PATCH=$BASE/$NICK.patch
vila> # Bundles contain a line like:
vila> # base_revision_id: [EMAIL PROTECTED]
vila> REV_ID=`grep '^# base_revision_id: ' $PATCH | sed -e 's/^#
base_revision_id: //'`
vila> TARGET_BRANCH=`grep '^# target_branch: ' $PATCH | sed -e 's/^#
target_branch: //'`
vila> cd $BASE
vila> bzr branch $TARGET_BRANCH -r revid:$REV_ID $1
vila> cd $BASE/$1
vila> bzr pull $PATCH
Cough, the following is simpler:
BASE=~/src/bzr/reviews
NICK=$1
PATCH=$BASE/$NICK.diff
cd $BASE
bzr init $NICK
cd $NICK
bzr pull $PATCH
And no real need to tie NICK and PATCH.
Vincent
_______________________________________________
Dvc-dev mailing list
[email protected]
https://mail.gna.org/listinfo/dvc-dev