Skip to contentSkip to conversation

Change bzr fetcher to use branch instead of co. Fixes: bzr: ERROR: No pull location known or specified.

PATCH Applied Martin Ertsaas 2 participants 2 messages Jul 19, 2012 – Jul 24, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Change bzr fetcher to use branch instead of co. Fixes: bzr: ERROR: No pull location known or specified.

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.

---
 lib/bb/fetch2/bzr.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
lib/bb/fetch2/bzr.py +1 -1
index 97daa62..58e80c8 100644
@@ -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:
Signature · 1 line
1.7.8.6
#1 lore raw
Quoted 13 lines · Martin Ertsaas

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.

---
 lib/bb/fetch2/bzr.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
lib/bb/fetch2/bzr.py +0 -0
index 97daa62..58e80c8 100644

lib/bb/fetch2/bzr.py class Bzr(FetchMethod): · line 79

Quoted 8 lines
lib/bb/fetch2/bzr.py +1 -1
@@ -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