Joerg Jaspert wrote:
> As subject says, it dies, telling me
> "cat: .bzr/branch/parent: File not found"

I guess this must have changed, IIRC I tested it was working, probably
with bzr 0.91, when this was originally submitted to mr. But I don't use
bzr much..

> Changing it to use bzr info command makes it work, diff below.
> 
> --- mr.orig     2008-02-03 22:14:51.435050674 +0100
> +++ mr  2008-02-03 22:14:21.591050623 +0100
> @@ -1243,7 +1243,7 @@
>         echo "Registering git url: $url in $MR_CONFIG"
>         mr -c "$MR_CONFIG" config "`pwd`" checkout="git clone '$url' 
> '$MR_REPO'"
>  bzr_register =
> -       url=`cat .bzr/branch/parent`
> +       url=`bzr info . | grep -i 'parent branch' | awk '{print $NF}'`
>         if [ -z "$url" ]; then
>                 error "cannot determine bzr url"
>         fi

That doesn't work in all cases either..
I made this checkout with bzr 1.1~rc1-1:

[EMAIL PROTECTED]:~/tmp/ftpmaster-dak>bzr info . 
Checkout (format: pack-0.92)
Location:
       checkout root: .
  checkout of branch: http://ftp-master.debian.org/bzr/ftpmaster-dak/

Guess it needs to use
bzr info . | egrep -i 'checkout of branch|parent branch' | awk '{print $NF}'

-- 
see shy jo

Attachment: signature.asc
Description: Digital signature

Reply via email to