Patchwork [bitbake-devel] Change bzr fetcher to use branch instead of co. Fixes: bzr: ERROR: No pull location known or specified.

login
register
mail settings
Submitter Martin Ertsaas
Date July 19, 2012, 11:26 a.m.
Message ID <1342697185-7332-1-git-send-email-mertsas@cisco.com>
Download mbox | patch
Permalink /patch/32501/
State Accepted
Commit 877a04d0b3cea9d5dbdf3c54fe0feb54cb997dda
Headers show

Comments

Martin Ertsaas - July 19, 2012, 11:26 a.m.
This problem occurs when fetching a different revision of the same source. Which mean every time you update a bzr package.
Using branch sets the pull location, and are the preferred way of cloning/branching a repository in bzr.

Signed-off-by: Martin Ertsaas <mertsas@cisco.com>
---
 lib/bb/fetch2/bzr.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Richard Purdie - July 24, 2012, 9:37 a.m.
On Thu, 2012-07-19 at 13:26 +0200, Martin Ertsaas wrote:
> This problem occurs when fetching a different revision of the same source. Which mean every time you update a bzr package.
> Using branch sets the pull location, and are the preferred way of cloning/branching a repository in bzr.
> 
> Signed-off-by: Martin Ertsaas <mertsas@cisco.com>
> ---
>  lib/bb/fetch2/bzr.py |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/lib/bb/fetch2/bzr.py b/lib/bb/fetch2/bzr.py
> index 97daa62..58e80c8 100644
> --- a/lib/bb/fetch2/bzr.py
> +++ b/lib/bb/fetch2/bzr.py
> @@ -73,7 +73,7 @@ class Bzr(FetchMethod):
>                  options.append("-r %s" % ud.revision)
>  
>              if command == "fetch":
> -                bzrcmd = "%s co %s %s://%s" % (basecmd, " ".join(options), proto, bzrroot)
> +                bzrcmd = "%s branch %s %s://%s" % (basecmd, " ".join(options), proto, bzrroot)
>              elif command == "update":
>                  bzrcmd = "%s pull %s --overwrite" % (basecmd, " ".join(options))
>              else:

Merged to master, thanks.

Richard

Patch

diff --git a/lib/bb/fetch2/bzr.py b/lib/bb/fetch2/bzr.py
index 97daa62..58e80c8 100644
--- a/lib/bb/fetch2/bzr.py
+++ b/lib/bb/fetch2/bzr.py
@@ -73,7 +73,7 @@  class Bzr(FetchMethod):
                 options.append("-r %s" % ud.revision)
 
             if command == "fetch":
-                bzrcmd = "%s co %s %s://%s" % (basecmd, " ".join(options), proto, bzrroot)
+                bzrcmd = "%s branch %s %s://%s" % (basecmd, " ".join(options), proto, bzrroot)
             elif command == "update":
                 bzrcmd = "%s pull %s --overwrite" % (basecmd, " ".join(options))
             else: