Summary
- Assembly
- Mercurial
.Net .dll - Namespace
- Mercurial
- Interfaces
- Base 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<TResult>"]-.->Type
click Interface0 "/Cake.Hg/api/Mercurial/IMercurialCommand_1"
Interface1["IMercurialCommand"]-.->Type
click Interface1 "/Cake.Hg/api/Mercurial/IMercurialCommand"
Interface2["ICommand"]-.->Type
click Interface2 "/Cake.Hg/api/Mercurial/ICommand"
Type["LogCommand"]
class Type type-node
Syntax
public sealed class LogCommand : IncludeExcludeCommandBase<LogCommand>,
IMercurialCommand<IEnumerable<Changeset>>, IMercurialCommand, ICommand
Constructors
Name | Summary |
---|---|
LogCommand |
Initializes a new instance of the LogCommand 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
|
Date | Nullable |
Gets or sets the date to show the log for, or
null if no filtering on date should be done.
Default is null .
|
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
|
ExcludePatterns | Collection |
Gets the collection of filename patterns to exclude
for the command.
Inherited from Include
|
Follow |
bool |
Gets or sets a value indicating whether to follow renames and copies when limiting the log.
Default is
false .
|
Include |
bool |
Gets or sets a value indicating whether to include hidden changesets.
Default is
false .
|
IncludePathActions | bool |
Gets or sets a value indicating whether to include path actions (which files were modified, and the
type of modification) or not. Default is
false .
|
IncludePatterns | Collection |
Gets the collection of filename patterns to include for
the command.
Inherited from Include
|
Keywords | Collection |
Gets the collection of case-insensitive keywords to search the log for.
Default is empty which indicates no searching will be done.
|
Observer | I |
Gets or sets the object that will act as an observer of command execution.
Inherited from CommandBase
|
Only |
bool |
Gets or sets a value indicating whether to only follow the first parent of merge changesets.
Default value is
false .
|
Path | string |
Gets or sets the path to produce the log for, or
System.String.Empty to produce
the log for the repository. Default is System.String.Empty .
|
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
|
Result | IEnumerable |
Gets the result of executing the command as a collection of
Changeset objects.
|
Revisions | Collection |
Gets the collection of
Revisions to process/include.
|
Timeout | int |
Gets or sets the timeout to use when executing Mercurial commands, in
seconds. Default is 60.
Inherited from CommandBase
|
Users | Collection |
Gets the collection of users to produce the log for, or an empty collection to produce
the log for the repository. Default is an empty collection.
|
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 |
Parses the standard output for results.
|
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.)
Inherited from CommandBase
|
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
|
WithDate |
LogCommand |
Sets the
Date property to the specified value and
returns this LogCommand instance.
|
WithExcludePattern |
T |
Adds the value to the
ExcludePatterns collection property and
returns this instance.
Inherited from Include
|
With |
LogCommand |
Sets the
FollowRenamesAndMoves property to the specified value and
returns this LogCommand instance.
|
With |
LogCommand |
Sets the
IncludeHiddenChangesets property to the specified value and
returns this LogCommand instance.
|
With |
LogCommand |
Sets the
IncludePathActions property to the specified value and
returns this LogCommand instance.
|
WithIncludePattern |
T |
Adds the value to the
IncludePatterns collection property and
returns this instance.
Inherited from Include
|
WithKeyword |
LogCommand |
Adds the value to the
Keywords collection property and
returns this LogCommand instance.
|
WithObserver |
T |
Sets the
Observer property to the specified value and
returns this instance.
Inherited from CommandBase
|
With |
LogCommand |
Sets the
OnlyFollowFirstParent property to the specified value and
returns this LogCommand instance.
|
WithPath |
LogCommand |
Sets the
Path property to the specified value and
returns this LogCommand instance.
|
WithRevision |
LogCommand |
Adds the value to the
Revisions collection property and
returns this LogCommand instance.
|
WithTimeout |
T |
Sets the
Timeout property to the specified value and
returns this instance.
Inherited from CommandBase
|
WithUser |
LogCommand |
Sets the
Users property to the specified value and
returns this LogCommand instance.
|
Extension Methods
Name | Value | Summary |
---|---|---|
Operate |
T |
Makes the command operate on the patch repository instead of the main repository.
|