Package com.aragost.javahg.commands

Examples of com.aragost.javahg.commands.CommitCommand.user()


            } finally {
                repo.unlock();
            }
        } else {
            CommitCommand cmd = CommitCommand.on(repo);
            cmd.user(this.rollbackChangeset.getUser());
            cmd.date(this.rollbackChangeset.getTimestamp());
            cmd.message(this.rollbackChangeset.getMessage());
            cmd.extra("source", getSource().getNode());
            return cmd.execute();
        }
View Full Code Here


    public void testClone() throws IOException {
        Repository src = Repository.open(createMercurialRepository());
        Files.write("q", new File(src.getDirectory(), "xxx"), utf8());
        AddCommand.on(src).execute();
        CommitCommand commit = CommitCommand.on(src);
        commit.user("test").message("m");
        commit.execute();
        File tgt = Files.createTempDir();
        Repository clone = Repository.clone(tgt, src.getDirectory().getAbsolutePath());
        File xxx = new File(tgt, "xxx");
        Assert.assertTrue(xxx.exists());
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.