tikhomirov@32: /*
tikhomirov@74:  * Copyright (c) 2011 TMate Software Ltd
tikhomirov@74:  *  
tikhomirov@74:  * This program is free software; you can redistribute it and/or modify
tikhomirov@74:  * it under the terms of the GNU General Public License as published by
tikhomirov@74:  * the Free Software Foundation; version 2 of the License.
tikhomirov@74:  *
tikhomirov@74:  * This program is distributed in the hope that it will be useful,
tikhomirov@74:  * but WITHOUT ANY WARRANTY; without even the implied warranty of
tikhomirov@74:  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
tikhomirov@74:  * GNU General Public License for more details.
tikhomirov@74:  *
tikhomirov@74:  * For information on how to redistribute this software under
tikhomirov@74:  * the terms of a license other than GNU General Public License
tikhomirov@102:  * contact TMate Software at support@hg4j.com
tikhomirov@32:  */
tikhomirov@74: package org.tmatesoft.hg.console;
tikhomirov@32: 
tikhomirov@32: import java.io.File;
tikhomirov@32: 
tikhomirov@74: import org.tmatesoft.hg.internal.DataAccessProvider;
tikhomirov@74: import org.tmatesoft.hg.repo.HgBundle;
tikhomirov@74: import org.tmatesoft.hg.repo.HgRepository;
tikhomirov@74: 
tikhomirov@32: 
tikhomirov@32: /**
tikhomirov@74:  * WORK IN PROGRESS, DO NOT USE
tikhomirov@74:  * 
tikhomirov@74:  * @author Artem Tikhomirov
tikhomirov@74:  * @author TMate Software Ltd.
tikhomirov@32:  */
tikhomirov@32: public class Bundle {
tikhomirov@32: 
tikhomirov@32: 	public static void main(String[] args) throws Exception {
tikhomirov@74: 		Options cmdLineOpts = Options.parse(args);
tikhomirov@74: 		HgRepository hgRepo = cmdLineOpts.findRepository();
tikhomirov@37: 		if (hgRepo.isInvalid()) {
tikhomirov@37: 			System.err.printf("Can't find repository in: %s\n", hgRepo.getLocation());
tikhomirov@37: 			return;
tikhomirov@37: 		}
tikhomirov@32: 		File bundleFile = new File("/temp/hg/hg-bundle-a78c980749e3.tmp");
tikhomirov@32: 		DataAccessProvider dap = new DataAccessProvider();
tikhomirov@36: 		HgBundle hgBundle = new HgBundle(dap, bundleFile);
tikhomirov@37: //		hgBundle.dump();
tikhomirov@37: 		hgBundle.changes(hgRepo);
tikhomirov@35: 	}
tikhomirov@32: }