Summary
This class serves as a base class for the
MoveCommand
and RenameCommand
classes.
- Assembly
- Mercurial
.Net .dll - Namespace
- Mercurial
- Interfaces
- Base Types
- Derived Types
graph TD
Base0["IncludeExcludeCommandBase<T>"]-->Type
click Base0 "/Cake.Hg/api/Mercurial/IncludeExcludeCommandBase_1"
Base1["MercurialCommandBase<T>"]-->Base0
click Base1 "/Cake.Hg/api/Mercurial/MercurialCommandBase_1"
Base2["CommandBase<T>"]-->Base1
click Base2 "/Cake.Hg/api/Mercurial/CommandBase_1"
Base3["object"]-->Base2
Interface0["IMercurialCommand"]-.->Type
click Interface0 "/Cake.Hg/api/Mercurial/IMercurialCommand"
Interface1["ICommand"]-.->Type
click Interface1 "/Cake.Hg/api/Mercurial/ICommand"
Type["MoveRenameCommandBase<T>"]
class Type type-node
Type-->Derived0["MoveCommand"]
click Derived0 "/Cake.Hg/api/Mercurial/MoveCommand"
Type-->Derived1["RenameCommand"]
click Derived1 "/Cake.Hg/api/Mercurial/RenameCommand"
Syntax
public abstract class MoveRenameCommandBase<T> : IncludeExcludeCommandBase<T>, IMercurialCommand,
ICommand
where T : MoveRenameCommandBase<T>
Type Parameters
Name | Description |
---|---|
T |
The actual type descending from MoveRenameCommandBase<T> , used to generate type-correct
methods in this base class.
|
Constructors
Name | Summary |
---|---|
Move |
Initializes a new instance of the MoveRenameCommandBase<T> class.
|
Properties
Name | Value | Summary |
---|---|---|
AdditionalArguments | Collection |
Gets the collection which additional arguments can be added into. This collection
is exposed for extensions, so that they have a place to add all their
extra arguments to the Mercurial command line client.
Inherited from CommandBase
|
Arguments | IEnumerable |
Gets all the arguments to the
Command , or an
empty array if there are none.
|
Command | string |
Gets the command to execute with the Mercurial command line client.
Inherited from CommandBase
|
DebugOutput | bool |
Gets or sets a value indicating whether to enable debug output on the command. This should only be used by the command code
itself, never by the user.
Inherited from CommandBase
|
Destination | string |
Gets or sets the destination of the move/rename command.
Default value is
System.String.Empty .
|
ExcludePatterns | Collection |
Gets the collection of filename patterns to exclude
for the command.
Inherited from Include
|
Force | bool |
Gets or sets a value indicating whether to forcibly copy over an existing managed file.
Default value is
false .
|
IncludePatterns | Collection |
Gets the collection of filename patterns to include for
the command.
Inherited from Include
|
Observer | I |
Gets or sets the object that will act as an observer of command execution.
Inherited from CommandBase
|
RawExitCode | int |
Gets the raw exit code from executing the command line client.
Inherited from CommandBase
|
Raw |
string |
Gets the raw standard error output from executing the command line client.
Inherited from CommandBase
|
RawStandardOutput | string |
Gets the raw standard output from executing the command line client.
Inherited from CommandBase
|
RecordOnly | bool |
Gets or sets a value indicating whether to record an action that has already occured.
Default value is
false .
|
Source | string |
Gets or sets the source of the move/rename command.
Default value is
System.String.Empty .
|
Timeout | int |
Gets or sets the timeout to use when executing Mercurial commands, in
seconds. Default is 60.
Inherited from CommandBase
|
Methods
Name | Value | Summary |
---|---|---|
AddArgument |
void |
Adds the specified argument to the
AdditionalArguments collection,
unless it is already present.
Inherited from CommandBase
|
After |
void |
This method is called after the command has been executed. You can use this to
clean up after the command execution (like removing temporary files), and to
react to the exit code from the command line client. If the exit code is
considered a failure, this method should throw the correct exception.
Inherited from CommandBase
|
Before |
void |
This method is called before the command is executed. You can use this to
store temporary files (like a commit message or similar) that the
Arguments refer to, before the command is executed.
Inherited from CommandBase
|
Cleanup |
void |
Override this method to implement code that will execute after command
line execution.
Inherited from CommandBase
|
Parse |
void |
This method should parse and store the appropriate execution result output
according to the type of data the command line client would return for
the command.
Inherited from CommandBase
|
Prepare |
void |
Override this method to implement code that will execute before command
line execution.
Inherited from CommandBase
|
RequiresVersion |
void |
This method will check the current client version and throw a
System.NotSupportedException
if the current client version is older than the required one.
Inherited from MercurialCommandBase
|
Throw |
void |
This method should throw the appropriate exception depending on the contents of
the exitCode and standardErrorOutput
parameters, or simply return if the execution is considered successful.
Inherited from CommandBase
|
Validate |
void |
Validates the command configuration. This method should throw the necessary
exceptions to signal missing or incorrect configuration (like attempting to
add files to the repository without specifying which files to add.)
|
With |
T |
Adds the value to the
AdditionalArguments collection property and
returns this instance.
Inherited from CommandBase
|
With |
void |
Adds a configuration override specification to the
AdditionalArguments
collection in the form of section.name=value .
Inherited from MercurialCommandBase
|
WithDestination |
T |
Sets the value of the
Destination property to the
specified value and returns this RenameCommand or MoveCommand instance.
|
WithExcludePattern |
T |
Adds the value to the
ExcludePatterns collection property and
returns this instance.
Inherited from Include
|
WithForce |
T |
Sets the value of the
Force property to the
specified value and returns this RenameCommand or MoveCommand instance.
|
WithIncludePattern |
T |
Adds the value to the
IncludePatterns collection property and
returns this instance.
Inherited from Include
|
WithObserver |
T |
Sets the
Observer property to the specified value and
returns this instance.
Inherited from CommandBase
|
WithRecordOnly |
T |
Sets the value of the
RecordOnly property to the
specified value and returns this RenameCommand or MoveCommand instance.
|
WithSource |
T |
Sets the value of the
Source property to the
specified value and returns this RenameCommand or MoveCommand instance.
|
WithTimeout |
T |
Sets the
Timeout property to the specified value and
returns this instance.
Inherited from CommandBase
|