comparison test/org/tmatesoft/hg/test/TestPush.java @ 663:46b56864b483

Pull: phase2 - update phases from remote, fncache with added files. Tests
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Wed, 10 Jul 2013 16:41:49 +0200
parents 629a7370554c
children
comparison
equal deleted inserted replaced
662:af5223b86dd3 663:46b56864b483
253 server.stop(); 253 server.stop();
254 } 254 }
255 } 255 }
256 256
257 257
258 /**
259 * XXX doesn't check the case when we push child of a draft revision which is
260 * known as public on server ((presentLocalDrafts \ outgoing) leaves bogus draft revision,
261 * the parent one of the child added and pushed)
262 * For the time being, TestPull.testPullFromPublishing covers this case (as both push and
263 * pull share same phase update functionality)
264 */
258 @Test 265 @Test
259 public void testPushToPublishingServer() throws Exception { 266 public void testPushToPublishingServer() throws Exception {
260 // copy, not clone as latter updates phase information 267 // copy, not clone as latter updates phase information
261 File srcRepoLoc = RepoUtils.copyRepoToTempLocation("test-phases", "test-push-pub-src"); 268 File srcRepoLoc = RepoUtils.copyRepoToTempLocation("test-phases", "test-push-pub-src");
262 File dstRepoLoc = RepoUtils.initEmptyTempRepo("test-push-pub-dst"); 269 File dstRepoLoc = RepoUtils.initEmptyTempRepo("test-push-pub-dst");