Summary
This class encapsulates a repository on disk.
- Assembly
- Mercurial
.Net .dll - Namespace
- Mercurial
- Base Types
-
- object
graph TD
Base0["object"]-->Type
Type["Repository"]
class Type type-node
Syntax
public sealed class Repository
Constructors
| Name | Summary |
|---|---|
| Repository |
Initializes a new instance of the Repository class.
|
Properties
| Name | Value | Summary |
|---|---|---|
| Path | string |
Gets the path of the repository root.
|
Methods
| Name | Value | Summary |
|---|---|---|
| Add |
void |
Adds one or more files to the repository.
|
| Add |
void |
Adds one or more files to the repository.
|
| AddRemove |
void |
Add all new files, delete all missing files.
|
| Annotate |
IEnumerable |
Annotates the specified item, returning annotation objects for the lines of
the file.
|
| Annotate |
IEnumerable |
Annotates the specified item, returning annotation objects for the lines of
the file.
|
| Archive |
void |
Verifies the integrity of the repository.
|
| Archive |
void |
Verifies the integrity of the repository.
|
| BeginExecute |
IAsyncResult |
Executes the given
IMercurialCommand command asynchronously against
the Mercurial repository, returning a IAsyncResult object
keeping track of the execution.
|
| BeginExecute |
IAsyncResult |
Executes the given
IMercurialCommand<TResult> command asynchronously against
the Mercurial repository, returning a IAsyncResult<T> object
keeping track of the execution.
|
| Bisect |
BisectResult |
Bisects the repository, doing a subdivision search for a good changeset.
|
| Bisect |
BisectResult |
Bisects the repository, doing a subdivision search for a good changeset.
|
| Bookmark |
void |
Creates, deletes, moves, or renames a bookmark.
|
| Bookmark |
void |
Bookmarks the working folder parent revision.
|
| Bookmark |
void |
Bookmarks the specified revision.
|
| Bookmarks |
IEnumerable |
Get the collection of existing bookmarks in this
Repository.
|
| Branch |
string |
Gets or sets the current branch name.
|
| Branch |
string |
Gets or sets the current branch name.
|
| Branches |
IEnumerable |
List repository named branches.
|
| Bundle |
void |
Bundles changesets into a changegroup file, a bundle.
|
| Bundle |
void |
Bundles changesets into a changegroup file, a bundle.
|
| Bundle |
void |
Bundles changesets into a changegroup file, a bundle.
|
| Cat |
string |
Retrieve the current or given revisions of file(s).
|
| Cat |
string |
Retrieve the current or given revisions of file(s).
|
| Clone |
void |
Clones a repository into this
Repository.
|
| Clone |
void |
Clones a repository into this
Repository, from the specified source.
|
| Commit |
RevSpec |
Commits the specified files or all outstanding changes to the repository.
|
| Commit |
RevSpec |
Commits the specified files or all outstanding changes to the repository.
|
| Copy |
void |
Copies one or more files from one place to another, and records the actions
as copy-commands in the next commit.
|
| Copy |
void |
Copies one or more files from one place to another, and records the actions
as copy-commands in the next commit.
|
| Diff |
string |
Diff repository (or selected files).
|
| Diff |
string |
Diff repository (or selected files).
|
| EndExecute |
void |
Finalizes the asynchronous execution started with
BeginExecute(IMercurialCommand, AsyncCallback).
|
| EndExecute |
TResult |
Finalizes the asynchronous execution started with
BeginExecute<TResult>(IMercurialCommand<TResult>, AsyncCallback).
|
| Execute |
void |
Executes the given
IMercurialCommand command against
the Mercurial repository.
|
| Execute |
TResult |
Executes the given
IMercurialCommand<TResult> command against
the Mercurial repository, returning the result as a typed value.
|
| Forget |
void |
Forgets one or more tracked files in the repository, making Mercurial
stop tracking them.
|
| Forget |
void |
Forgets one or more tracked files in the repository, making Mercurial
stop tracking them.
|
| Heads |
IEnumerable |
Get current repository heads or get branch heads.
|
| Identify |
RevSpec |
Identifies the working copy.
|
| Incoming |
IEnumerable |
Retrieve new changesets found in the default source.
|
| Incoming |
IEnumerable |
Retrieve new changesets found in the source.
|
| Init |
void |
Initializes a new repository in the directory this
Repository refers to.
|
| Log |
IEnumerable |
Gets all the changesets in the log.
|
| Log |
IEnumerable |
Gets all the changesets in the log.
|
| Manifest |
IEnumerable |
Output the current or given revision of the project manifest.
|
| Manifest |
IEnumerable |
Output the given revision of the project manifest.
|
| Merge |
MergeResult |
Performs a merge between the current working folder and another revision.
|
| Merge |
MergeResult |
Performs a merge between the current working folder and the specified revision.
|
| Move |
void |
Move files; equivalent of copy + remove.
|
| Move |
void |
Move files; equivalent of copy + remove.
|
| Outgoing |
IEnumerable |
Retrieve changesets not found in the default destination.
|
| Outgoing |
IEnumerable |
Retrieve changesets not found in the destination.
|
| Parents |
IEnumerable |
Retrieve the parents of the working directory or revision.
|
| Paths |
IEnumerable |
Retrieve aliases for remote repositories.
|
| Pull |
void |
Pull changes from the specified source.
|
| Pull |
void |
Pull changes from the specified source.
|
| Push |
void |
Push changes to the specified destination.
|
| Push |
void |
Push changes to the specified destination.
|
| Recover |
void |
Recover from an interrupted commit or pull.
|
| Remove |
void |
Removes one or more files from the repository.
|
| Remove |
void |
Removes one or more files from the repository.
|
| Rename |
void |
Rename files; equivalent of copy + remove.
|
| Rename |
void |
Rename files; equivalent of copy + remove.
|
| Resolve |
IEnumerable |
Redo merges or set/view the merge status of files.
|
| Resolve |
void |
Mark the file as resolved or unresolved, or attempt to redo the merge.
|
| Resolve |
void |
Mark the file as resolved.
|
| Revert |
void |
Restore individual files or directories to an earlier state.
|
| Revert |
void |
Restore individual files or directories to an earlier state.
|
| Rollback |
void |
Roll back the last transaction (dangerous.)
|
| StartMerge |
MergeJob |
Starts a controlled merge, using the
MergeJob helper class to control the process.
|
| Status |
IEnumerable |
Retrieves the status of changed files in the working directory.
|
| Summary |
RepositorySummary |
Summarize working directory state.
|
| Tag |
void |
Add or remove a tag for a changeset.
|
| Tag |
void |
Add or remove a tag for a changeset.
|
| Tags |
IEnumerable |
List repository tags.
|
| Tip |
Changeset |
Retrieves the tip revision.
|
| ToString |
string |
Returns a
string that represents the current Repository.
|
| Unbundle |
void |
Apply one or more changegroup files generated by the bundle command.
|
| Unbundle |
void |
Apply one or more changegroup files generated by the bundle command.
|
| Update |
void |
Updates the working copy to a new revision.
|
| Update |
void |
Updates the working copy to a new revision.
|
| Verify |
void |
Verifies the integrity of the repository.
|
Extension Methods
| Name | Value | Summary |
|---|---|---|
| AddGui |
void |
Add files to the repository.
From GuiClient
|
| AnnotateGui |
void |
Show the TortoiseHg annotate dialog.
From GuiClient
|
| AnnotateGui |
void |
Show the TortoiseHg annotate dialog.
From GuiClient
|
| ArchiveGui |
void |
Show the TortoiseHg dialog for creating an unversioned archive from
a working folder.
From GuiClient
|
| BackoutGui |
void |
Backout tool.
From GuiClient
|
| BeginExecute |
IAsyncResult |
Executes the given
IGuiCommand command against
the Mercurial repository, asynchronously.
From GuiClient
|
| BisectGui |
void |
Bisect tool.
From GuiClient
|
| Changeset |
Changeset |
Retrieve first changeset by revision
From HgExtensions
|
| Churn |
IEnumerable |
Calculates the churn report; a histogram of changes to the repository.
From ChurnExtension
|
| CloneGui |
void |
Show the TortoiseHg dialog for cloning a repository.
From GuiClient
|
| CommitGui |
void |
Show the TortoiseHg dialog for commiting changes to the repository.
From GuiClient
|
| CopyGui |
void |
Show the copy file dialog.
From GuiClient
|
| CopyGui |
void |
Show the copy file dialog.
From GuiClient
|
| DatamineGui |
void |
Show the TortoiseHg dialog for datamining, searching the repository.
From GuiClient
|
| DiffGui |
void |
Launch the visual diff tool.
From GuiClient
|
| DiffGui |
void |
Launch the visual diff tool.
From GuiClient
|
| DragCopyGui |
void |
Copy the selected files to the desired directory.
From GuiClient
|
| DragCopyGui |
void |
Copy the selected files to the desired directory.
From GuiClient
|
| DragMoveGui |
void |
Move the selected files to the desired directory.
From GuiClient
|
| DragMoveGui |
void |
Move the selected files to the desired directory.
From GuiClient
|
| EditIgnoreFiltersGui |
void |
Show the TortoiseHg dialog for editing ignore filters for the repository.
From GuiClient
|
| EmailGui |
void |
Send changesets by email.
From GuiClient
|
| EndExecute |
void |
Finalizes the asynchronous execution started with
BeginExecute(Repository, IGuiCommand, AsyncCallback).
From GuiClient
|
| Execute |
void |
Executes the given
IGuiCommand command against
the Mercurial repository.
From GuiClient
|
| ForgetGui |
void |
Show the TortoiseHg dialog for forgetting tracked files.
From GuiClient
|
| GuessGui |
void |
Show the TortoiseHg dialog for guessing previous renames or copies.
From GuiClient
|
| ImportGui |
void |
Show the TortoiseHg dialog for importing patches into the repository or the patch queue.
From GuiClient
|
| InitGui |
void |
Show the TortoiseHg dialog for initializing a new repository.
From GuiClient
|
| LogGui |
void |
Open the repository explorer for the repository.
From GuiClient
|
| ManifestGui |
void |
Display the current or given revision of the project manifest.
From GuiClient
|
| MergeGui |
void |
Show the TortoiseHg dialog for merging another revision with the local one.
From GuiClient
|
| MoveGui |
void |
Show the move file dialog.
From GuiClient
|
| MoveGui |
void |
Show the move file dialog.
From GuiClient
|
| MPatchGui |
void |
Attempt to resolve conflicts in a .rej file.
From GuiClient
|
| MPatchGui |
void |
Attempt to resolve conflicts in a .rej file.
From GuiClient
|
| Parent |
Changeset |
Retrieve first parent of changeset.
From HgExtensions
|
| Parent |
Changeset |
Retrieve first parent of revision.
From HgExtensions
|
| PurgeGui |
void |
Purge unknown and/or ignore files from repository.
From GuiClient
|
| QueueGui |
void |
Show the Mercurial queue tool.
From GuiClient
|
| QueueManagerGui |
void |
Manage multiple MQ patch queues.
From GuiClient
|
| QueueReorderGui |
void |
Reorder unapplied MQ patches.
From GuiClient
|
| RebaseGui |
void |
Rebase changesets.
From GuiClient
|
| RebaseGui |
void |
Rebase changesets.
From GuiClient
|
| RecoveryGui |
void |
Show the TortoiseHg dialog for recovery for the repository.
From GuiClient
|
| RejectsGui |
void |
Manually resolve rejected patch chunks.
From GuiClient
|
| RejectsGui |
void |
Manually resolve rejected patch chunks.
From GuiClient
|
| RemoveGui |
void |
Show the TortoiseHg file status dialog in revert mode, for removing or reverting files.
From GuiClient
|
| RenameGui |
void |
Show the rename file dialog.
From GuiClient
|
| RenameGui |
void |
Show the rename file dialog.
From GuiClient
|
| RepoConfigGui |
void |
Show the repository configuration editor.
From GuiClient
|
| ResolveGui |
void |
Shows the resolve dialog.
From GuiClient
|
| RevertGui |
void |
Revert selected files.
From GuiClient
|
| SearchGui |
void |
Grep/search the repository.
From GuiClient
|
| ShelveGui |
void |
Open the shelve tool for the repository.
From GuiClient
|
| StatusGui |
void |
Browse working directory status.
From GuiClient
|
| StripGui |
void |
Strip changesets from the repository.
From GuiClient
|
| StripGui |
void |
Strip changesets from the repository.
From GuiClient
|
| SynchronizeGui |
void |
Synchronize the repository with other repositories.
From GuiClient
|
| TagGui |
void |
Open the Tag gui.
From GuiClient
|
| TagGui |
void |
Open the Tag gui.
From GuiClient
|
| UpdateGui |
void |
Update/checkout changeset to working directory.
From GuiClient
|
| UpdateGui |
void |
Update/checkout changeset to working directory.
From GuiClient
|