invalid example in EasyBranching page

Bug #244257 reported by anatoly techtonik
2
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
Medium
Jonathan Lange

Bug Description

I am new to Bazaar and while reading basic documentation I've got a stacktrace when running an example from https://help.launchpad.net/FeatureHighlights/EasyBranching that instructs to use the following command to create GNU Hello branch.

bzr branch http://launchpad.net/gnuhello

It results in the following error.

bzr: ERROR: bzrlib.errors.PathNotChild: Path "http://launchpad.net/gnuhello/.bzr/branch-format" is not a child of path "nosmart+http://launchpad.net/gnuhello/"

Traceback (most recent call last):
  File "bzrlib\commands.pyc", line 846, in run_bzr_catch_errors
  File "bzrlib\commands.pyc", line 797, in run_bzr
  File "bzrlib\commands.pyc", line 499, in run_argv_aliases
  File "bzrlib\builtins.pyc", line 916, in run
  File "bzrlib\bzrdir.pyc", line 789, in open_tree_or_branch
  File "bzrlib\bzrdir.pyc", line 667, in open
  File "bzrlib\bzrdir.pyc", line 704, in open_from_transport
  File "bzrlib\lazy_import.pyc", line 125, in __call__
  File "bzrlib\transport\__init__.pyc", line 1620, in do_catching_redirections
  File "bzrlib\bzrdir.pyc", line 685, in redirected
  File "bzrlib\transport\__init__.pyc", line 494, in relpath
PathNotChild: Path "http://launchpad.net/gnuhello/.bzr/branch-format" is not a child of path "nosmart+http://launchpad.net/gnuhello/"

bzr 1.5 on python 2.5.2 (win32)
arguments: ['bzr', 'branch', 'nosmart+http://launchpad.net/gnuhello']
encoding: 'cp1251', fsenc: 'mbcs', lang: 'C'
plugins:
  launchpad C:\Tools\VCS\Bazaar\plugins\launchpad [unknown]
*** Bazaar has encountered an internal error.
    Please report a bug at https://bugs.launchpad.net/bzr/+filebug
    including this traceback, and a description of what you
    were doing when the error occurred.

What makes me feel that docs are wrong is that "bzr branch nosmart+http://bazaar-vcs.org/bzr/bzr.dev" command works as expected.

Tags: lp-code
Revision history for this message
anatoly techtonik (techtonik) wrote :

bzr + launchpasd will not be as popular as it could without instructions how to setup and _use_ SSH keys for bzr+lp in various environments, i.e. need to run Pageant to use generated key for auth on Windows.

Revision history for this message
anatoly techtonik (techtonik) wrote :

John A Meinel provided the correct replacement at https://answers.edge.launchpad.net/bzr/+question/37893 for invalid command

  bzr branch http://launchpad.net/gnuhello

to be

  bzr branch https://code.launchpad.net/gnuhello

Revision history for this message
Jonathan Lange (jml) wrote :

Thanks techtonik

I've updated the wiki page and filed bug 246783 to track the SSH key agent documentation.

Changed in launchpad-bazaar:
assignee: nobody → jml
importance: Undecided → Medium
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.