Mercurial > jhg
diff src/org/tmatesoft/hg/core/HgPushCommand.java @ 653:629a7370554c
Tests for recent changes in HgParentChildMap and RepositoryComparator (outgoing to respect drafts and Issue 47)
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Wed, 03 Jul 2013 14:38:30 +0200 |
parents | cd77bf51b562 |
children | 12a4f60ea972 |
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/core/HgPushCommand.java Tue Jul 02 23:21:16 2013 +0200 +++ b/src/org/tmatesoft/hg/core/HgPushCommand.java Wed Jul 03 14:38:30 2013 +0200 @@ -18,7 +18,6 @@ import java.io.File; import java.io.IOException; -import java.net.URL; import java.util.ArrayList; import java.util.List; @@ -39,10 +38,10 @@ import org.tmatesoft.hg.repo.HgRepository; import org.tmatesoft.hg.repo.HgRuntimeException; import org.tmatesoft.hg.util.CancelledException; +import org.tmatesoft.hg.util.LogFacility.Severity; import org.tmatesoft.hg.util.Outcome; import org.tmatesoft.hg.util.Pair; import org.tmatesoft.hg.util.ProgressSupport; -import org.tmatesoft.hg.util.LogFacility.Severity; /** * @@ -220,15 +219,4 @@ remoteDrafts = remoteDrafts.subtract(localChildrenNotSent); return remoteDrafts; } - - /* - * To test, start a server: - * $ hg --config web.allow_push=* --config web.push_ssl=False --config server.validate=True --debug serve - */ - public static void main(String[] args) throws Exception { - final HgLookup hgLookup = new HgLookup(); - HgRepository r = hgLookup.detect("/home/artem/hg/test-phases/"); - HgRemoteRepository rr = hgLookup.detect(new URL("http://localhost:8000/")); - new HgPushCommand(r).destination(rr).execute(); - } }