> It's a shame that only the LocalGitBzrDirFormat format is exercised in the
> tests whereas only the RemoteGitBzrDirFormat will be used in production.
> Not sure what we can do about that though.
Yeah, that's a bit of a question that needs an answer...
review approve
> It's a shame that only the LocalGitBzrDirF ormat format is exercised in the Format will be used in production.
> tests whereas only the RemoteGitBzrDir
> Not sure what we can do about that though.
Yeah, that's a bit of a question that needs an answer...
> === modified file 'lib/lp/ codehosting/ codeimport/ worker. py' codehosting/ codeimport/ worker. py 2009-11-19 04:22:10 +0000 codehosting/ codeimport/ worker. py 2009-12-01 03:20:33 +0000 ui.ui_factory = LoggingUIFactory( info('% s', m)) tree.branch. pull( open(self. pull_url) , overwrite=True) self.pull_ url) classes: class.probe_ transport( transport) self.pull_ url) open(transport) .open_branch( ) tree.branch. pull(foreign_ branch, overwrite=True) ui.ui_factory = saved_factory WorkingTree( bazaar_ tree)
> --- lib/lp/
> +++ lib/lp/
> @@ -504,8 +509,16 @@
> bzrlib.
> writer=lambda m: self._logger.
> try:
> - bazaar_
> - Branch.
> + transport = get_transport(
> + for format_class in self.format_
> + try:
> + format = format_
> + except NotBranchError:
> + pass
> + else:
> + raise NotBranchError(
> + foreign_branch = format.
> + bazaar_
> finally:
> bzrlib.
> self.pushBazaar
This hunk looks wrong. The else clause is hanging wrongly.