Unbundle throws "abort: error: ftp error: no host given" when using LAN sharing with a UNC loop

Before explaining my problem, let me tell you about setting up Mercurial,

We have the following repositions,

RELEASE BUGFIX DEVELOPMENT

All of the above repo operations are performed on a central server using IIS and hgwebdir.cgi

Now, having come to a problem,

  • I am cloning a local repo from DEVELOPMENT REPO.
  • I make changes to the clone and commit (do not click).
  • I make a bunch of clones and pass the package to QA, which cloned the RELEASE repository.
  • Now I'm trying to apply the package to the RELEASE repository using hg unbundle
  • I get the error message: abort: error: ftp error: no host given

What am I doing wrong? Can you give a solution to the aforementioned problem considering Windows setup?

+4
source share
2 answers

In my opinion, you have a syntax error in the unbundle command. Normal use:

hg unbundle c:\path\to\the.bundle 

no ftp unless you try to use the ftp: // url which is not supported. Is it possible that you have a directory named ftp and the parser mistakenly defines it for the component in the ftp url?

In addition, most people will not use packages in the scenario you describe. They just did:

 hg push URL-or-file-path-to-QA 

and click directly on QA own repo (not for RELEASE)

People usually use packets only when a network connection is impossible or practical.

+4
source

I had the same problem, I don't think hg likes uncs.

I mapped \ server \ DevSourceCode \ Mercurial to R: and it worked fine, see below:

 R:\Repositories\myproj>hg unbundle \\server\DevSourceCode\Mercurial\ChangeBundles\myproj_changes.hg abort: error: ftp error: no host given R:\Repositories\myproj>hg unbundle R:\ChangeBundles\myproj_changes.hg adding changesets adding manifests adding file changes added 0 changesets with 0 changes to 139 files (run 'hg update' to get a working copy) 
+3
source

Source: https://habr.com/ru/post/1311086/


All Articles