3r1co / hg4j

Automatically exported from code.google.com/p/hg4j
GNU General Public License v2.0
0 stars 1 forks source link

CloneCommand is not cloning the repository #50

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Code surrounded by try/catch: 
URL url = new URL("https://myuser:mypass@myRemoteServer/myproject");
HgRemoteRepository hgRemote = new HgLookup().detect(url);
HgCloneCommand cmd = new HgCloneCommand();
cmd.source(hgRemote);                   
cmd.destination(new File(myFolder));                                    
HgRepository hg = cmd.execute();

2. No errors, .hg folder created but no files were imported.

What is the expected output? What do you see instead?
The repository should be cloned inside myFolder. I've just got a .hg folder, 
but no files.

What version of the product are you using? On what operating system?
hg4j.jar, MacOS 10.9.2

Please provide any additional information below.
I can clone the repo using the same string in SourceTree. Should I write the 
port there? I also tried with
- https://myuser:mypass@myRemoteServer/myproject:443 (error)
- https://myuser:mypass@myRemoteServer:443/myproject (same behaviour than 
without it, no error, no message)

Original issue reported on code.google.com by jorge.r...@mobgen.com on 1 Aug 2014 at 8:44

GoogleCodeExporter commented 8 years ago
HgCloneCommand gets the repo, but doesn't populate working directory, you'd 
need HgCheckoutCommand, too, to get the files in the working directory. 
HgCloneCommand is thus 'hg clone -U'.

Original comment by tikhomir...@gmail.com on 3 Aug 2014 at 4:50