Class CopyCommand

  extended by com.aragost.javahg.internals.AbstractCommand
      extended by com.aragost.javahg.commands.flags.CopyCommandFlags
          extended by com.aragost.javahg.commands.CopyCommand

public class CopyCommand
extends CopyCommandFlags

Command class for executing hg copy. Set flags from CopyCommandFlags and call the execute(java.lang.String...) method.

Nested Class Summary
Nested classes/interfaces inherited from class com.aragost.javahg.internals.AbstractCommand
Constructor Summary
CopyCommand(Repository repository)
Method Summary
 Map<File,File> execute(File... files)
 Map<String,String> execute(String... files)
Methods inherited from class com.aragost.javahg.commands.flags.CopyCommandFlags
after, exclude, force, getCommandName, include, on
Methods inherited from class com.aragost.javahg.internals.AbstractCommand
cancel, clear, cmdAppend, cmdAppend, cmdAppend, cmdAppend, cmdAppend, doneHook, getErrorString, getRepository, getReturnCode, isSuccessful, launchIterator, launchStream, launchString, needsInputLine, reopenOutputChannelStream, sendLine, toString, withDebugAndChangesetStyle, withDebugFlag
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail


public CopyCommand(Repository repository)
repository - the repository associated with this command.
Method Detail


public Map<String,String> execute(String... files)
files - the files to copy. The last file in this list is the destination. If two files are given, the target must be a directory or a non-existing file. If more files are given, the destination must be an directory.
mapping from new names to old names.


public Map<File,File> execute(File... files)

Copyright © 2011-2013 aragost Trifork ag. All Rights Reserved.