Mercurial > hg4j
comparison cmdline/org/tmatesoft/hg/console/Clone.java @ 171:2c3e96674e2a
Towards outgoing changes - initial detection logic, get connected with remote repo stub
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Fri, 25 Mar 2011 00:05:52 +0100 |
parents | 71ddbf8603e8 |
children | 44a34baabea0 |
comparison
equal
deleted
inserted
replaced
170:71ddbf8603e8 | 171:2c3e96674e2a |
---|---|
90 // //////// 2. then, read the file with HgBundle | 90 // //////// 2. then, read the file with HgBundle |
91 // //////// 3. process changelog, memorize nodeids to index | 91 // //////// 3. process changelog, memorize nodeids to index |
92 // //////// 4. process manifest, using map from step 3, collect manifest nodeids | 92 // //////// 4. process manifest, using map from step 3, collect manifest nodeids |
93 // //////// 5. process every file, using map from 3, and consult set from step 4 to ensure repo is correct | 93 // //////// 5. process every file, using map from 3, and consult set from step 4 to ensure repo is correct |
94 // access source | 94 // access source |
95 HgRemoteRepository remoteRepo = new HgRemoteRepository();// new HgLookup().detect(new URL("https://asd/hg/")); | 95 HgRemoteRepository remoteRepo = new HgLookup().detect(new URL("https://asd/hg/")); |
96 // discover changes | 96 // discover changes |
97 HgBundle completeChanges = remoteRepo.getChanges(Collections.singletonList(NULL)); | 97 HgBundle completeChanges = remoteRepo.getChanges(Collections.singletonList(NULL)); |
98 WriteDownMate mate = new WriteDownMate(destDir); | 98 WriteDownMate mate = new WriteDownMate(destDir); |
99 // instantiate new repo in the destdir | 99 // instantiate new repo in the destdir |
100 mate.initEmptyRepository(); | 100 mate.initEmptyRepository(); |