[hipl-dev] Re: 'bzr version-info' for version.h creation accesses the network

  • From: Diego Biurrun <diego@xxxxxxxxxx>
  • To: hipl-dev@xxxxxxxxxxxxx
  • Date: Fri, 12 Nov 2010 16:38:27 +0100

On Mon, Oct 11, 2010 at 09:51:28PM +0200, Diego Biurrun wrote:
> I investigated an old issue that Miika asked me to look into:
> 
> mkomu@bling:~/projects/hipl-bzr/trunk$ make version.h
> echo "$(bzr version-info . --custom --template="#define BZR_REVISION
> \"{revno}\"\n\n#define BZR_BRANCH \"{branch_nick}\"")" > version.h
> ssh: Could not resolve hostname hipl.hiit.fi: Name or service not known
> 
> It appears that 'bzr version-info' accesses the repository over the
> network even though it should not be necessary to get the information.
> Nonetheless the above command succeeds and version.h is created fine.

I found the reason behind this error message: It only appears if you work
on a checkout and not a full branch.  So use branches if you wish to work
without network, it's the sensible thing to do anyway :)

Diego

Other related posts: