Mercurial > jhg
diff src/org/tmatesoft/hg/repo/HgRemoteRepository.java @ 673:545b1d4cc11d
Refactor HgBundle.GroupElement (clear experimental mark), resolve few technical debt issues
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Fri, 12 Jul 2013 20:14:24 +0200 |
parents | cd77bf51b562 |
children | 9897cbfd2790 |
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/repo/HgRemoteRepository.java Fri Jul 12 16:29:06 2013 +0200 +++ b/src/org/tmatesoft/hg/repo/HgRemoteRepository.java Fri Jul 12 20:14:24 2013 +0200 @@ -65,6 +65,7 @@ import org.tmatesoft.hg.core.SessionContext; import org.tmatesoft.hg.internal.DataSerializer; import org.tmatesoft.hg.internal.DataSerializer.OutputStreamSerializer; +import org.tmatesoft.hg.internal.BundleSerializer; import org.tmatesoft.hg.internal.EncodingHelper; import org.tmatesoft.hg.internal.Internals; import org.tmatesoft.hg.internal.PropertyMarshal; @@ -422,7 +423,7 @@ StringBuilder sb = appendNodeidListArgument("heads", remoteHeads, null); HttpURLConnection c = null; - DataSerializer.DataSource bundleData = bundle.new BundleSerializer(); + DataSerializer.DataSource bundleData = BundleSerializer.newInstance(sessionContext, bundle); try { URL u = new URL(url, url.getPath() + "?cmd=unbundle&" + sb.toString()); c = setupConnection(u.openConnection());