Repository Class

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(string) 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(AddCommand) void
Adds one or more files to the repository.
Add(string, AddCommand) void
Adds one or more files to the repository.
AddRemove(AddRemoveCommand) void
Add all new files, delete all missing files.
Annotate(AnnotateCommand) IEnumerable<T>
Annotates the specified item, returning annotation objects for the lines of the file.
Annotate(string, AnnotateCommand) IEnumerable<T>
Annotates the specified item, returning annotation objects for the lines of the file.
Archive(ArchiveCommand) void
Verifies the integrity of the repository.
Archive(string, ArchiveCommand) void
Verifies the integrity of the repository.
BeginExecute(IMercurialCommand, AsyncCallback) IAsyncResult
Executes the given IMercurialCommand command asynchronously against the Mercurial repository, returning a IAsyncResult object keeping track of the execution.
BeginExecute<TResult>(IMercurialCommand<TResult>, AsyncCallback) IAsyncResult<T>
Executes the given IMercurialCommand<TResult> command asynchronously against the Mercurial repository, returning a IAsyncResult<T> object keeping track of the execution.
Bisect(BisectCommand) BisectResult
Bisects the repository, doing a subdivision search for a good changeset.
Bisect(BisectState, BisectCommand) BisectResult
Bisects the repository, doing a subdivision search for a good changeset.
Bookmark(BookmarkCommand) void
Creates, deletes, moves, or renames a bookmark.
Bookmark(string, BookmarkCommand) void
Bookmarks the working folder parent revision.
Bookmark(string, RevSpec, BookmarkCommand) void
Bookmarks the specified revision.
Bookmarks(BookmarksCommand) IEnumerable<T>
Get the collection of existing bookmarks in this Repository.
Branch(BranchCommand) string
Gets or sets the current branch name.
Branch(string, BranchCommand) string
Gets or sets the current branch name.
Branches(BranchesCommand) IEnumerable<T>
List repository named branches.
Bundle(BundleCommand) void
Bundles changesets into a changegroup file, a bundle.
Bundle(string, BundleCommand) void
Bundles changesets into a changegroup file, a bundle.
Bundle(string, string, BundleCommand) void
Bundles changesets into a changegroup file, a bundle.
Cat(CatCommand) string
Retrieve the current or given revisions of file(s).
Cat(string, CatCommand) string
Retrieve the current or given revisions of file(s).
Clone(CloneCommand) void
Clones a repository into this Repository.
Clone(string, CloneCommand) void
Clones a repository into this Repository, from the specified source.
Commit(CommitCommand) RevSpec
Commits the specified files or all outstanding changes to the repository.
Commit(string, CommitCommand) RevSpec
Commits the specified files or all outstanding changes to the repository.
Copy(CopyCommand) void
Copies one or more files from one place to another, and records the actions as copy-commands in the next commit.
Copy(string, string, CopyCommand) void
Copies one or more files from one place to another, and records the actions as copy-commands in the next commit.
Diff(DiffCommand) string
Diff repository (or selected files).
Diff(RevSpec, DiffCommand) string
Diff repository (or selected files).
EndExecute(IAsyncResult) void
Finalizes the asynchronous execution started with BeginExecute(IMercurialCommand, AsyncCallback).
EndExecute<TResult>(IAsyncResult<TResult>) TResult
Finalizes the asynchronous execution started with BeginExecute<TResult>(IMercurialCommand<TResult>, AsyncCallback).
Execute(IMercurialCommand) void
Executes the given IMercurialCommand command against the Mercurial repository.
Execute<TResult>(IMercurialCommand<TResult>) TResult
Executes the given IMercurialCommand<TResult> command against the Mercurial repository, returning the result as a typed value.
Forget(ForgetCommand) void
Forgets one or more tracked files in the repository, making Mercurial stop tracking them.
Forget(string, ForgetCommand) void
Forgets one or more tracked files in the repository, making Mercurial stop tracking them.
Heads(HeadsCommand) IEnumerable<T>
Get current repository heads or get branch heads.
Identify(IdentifyCommand) RevSpec
Identifies the working copy.
Incoming(IncomingCommand) IEnumerable<T>
Retrieve new changesets found in the default source.
Incoming(string, IncomingCommand) IEnumerable<T>
Retrieve new changesets found in the source.
Init(InitCommand) void
Initializes a new repository in the directory this Repository refers to.
Log(LogCommand) IEnumerable<T>
Gets all the changesets in the log.
Log(RevSpec, LogCommand) IEnumerable<T>
Gets all the changesets in the log.
Manifest(ManifestCommand) IEnumerable<T>
Output the current or given revision of the project manifest.
Manifest(RevSpec, ManifestCommand) IEnumerable<T>
Output the given revision of the project manifest.
Merge(MergeCommand) MergeResult
Performs a merge between the current working folder and another revision.
Merge(RevSpec, MergeCommand) MergeResult
Performs a merge between the current working folder and the specified revision.
Move(MoveCommand) void
Move files; equivalent of copy + remove.
Move(string, string, MoveCommand) void
Move files; equivalent of copy + remove.
Outgoing(OutgoingCommand) IEnumerable<T>
Retrieve changesets not found in the default destination.
Outgoing(string, OutgoingCommand) IEnumerable<T>
Retrieve changesets not found in the destination.
Parents(ParentsCommand) IEnumerable<T>
Retrieve the parents of the working directory or revision.
Paths(PathsCommand) IEnumerable<T>
Retrieve aliases for remote repositories.
Pull(PullCommand) void
Pull changes from the specified source.
Pull(string, PullCommand) void
Pull changes from the specified source.
Push(PushCommand) void
Push changes to the specified destination.
Push(string, PushCommand) void
Push changes to the specified destination.
Recover(RecoverCommand) void
Recover from an interrupted commit or pull.
Remove(RemoveCommand) void
Removes one or more files from the repository.
Remove(string, RemoveCommand) void
Removes one or more files from the repository.
Rename(RenameCommand) void
Rename files; equivalent of copy + remove.
Rename(string, string, RenameCommand) void
Rename files; equivalent of copy + remove.
Resolve(ResolveCommand) IEnumerable<T>
Redo merges or set/view the merge status of files.
Resolve(string, ResolveAction, ResolveCommand) void
Mark the file as resolved or unresolved, or attempt to redo the merge.
Resolve(string, ResolveCommand) void
Mark the file as resolved.
Revert(RevertCommand) void
Restore individual files or directories to an earlier state.
Revert(string, RevertCommand) void
Restore individual files or directories to an earlier state.
Rollback(RollbackCommand) void
Roll back the last transaction (dangerous.)
StartMerge(MergeCommand) MergeJob
Starts a controlled merge, using the MergeJob helper class to control the process.
Status(StatusCommand) IEnumerable<T>
Retrieves the status of changed files in the working directory.
Summary(SummaryCommand) RepositorySummary
Summarize working directory state.
Tag(string, TagCommand) void
Add or remove a tag for a changeset.
Tag(TagCommand) void
Add or remove a tag for a changeset.
Tags(TagsCommand) IEnumerable<T>
List repository tags.
Tip(TipCommand) Changeset
Retrieves the tip revision.
ToString() string
Returns a string that represents the current Repository.
Unbundle(string, UnbundleCommand) void
Apply one or more changegroup files generated by the bundle command.
Unbundle(UnbundleCommand) void
Apply one or more changegroup files generated by the bundle command.
Update(RevSpec, UpdateCommand) void
Updates the working copy to a new revision.
Update(UpdateCommand) void
Updates the working copy to a new revision.
Verify(VerifyCommand) void
Verifies the integrity of the repository.

Extension Methods

Name Value Summary
AddGui(AddGuiCommand) void
Add files to the repository.
AnnotateGui(AnnotateGuiCommand) void
Show the TortoiseHg annotate dialog.
AnnotateGui(string, AnnotateGuiCommand) void
Show the TortoiseHg annotate dialog.
ArchiveGui(ArchiveGuiCommand) void
Show the TortoiseHg dialog for creating an unversioned archive from a working folder.
BackoutGui(BackoutGuiCommand) void
Backout tool.
BeginExecute(IGuiCommand, AsyncCallback) IAsyncResult
Executes the given IGuiCommand command against the Mercurial repository, asynchronously.
BisectGui(BisectGuiCommand) void
Bisect tool.
Changeset(RevSpec) Changeset
Retrieve first changeset by revision
Churn(ChurnCommand) IEnumerable<T>
Calculates the churn report; a histogram of changes to the repository.
CloneGui(CloneGuiCommand) void
Show the TortoiseHg dialog for cloning a repository.
CommitGui(CommitGuiCommand) void
Show the TortoiseHg dialog for commiting changes to the repository.
CopyGui(CopyGuiCommand) void
Show the copy file dialog.
CopyGui(string, string, CopyGuiCommand) void
Show the copy file dialog.
DatamineGui(DatamineGuiCommand) void
Show the TortoiseHg dialog for datamining, searching the repository.
DiffGui(DiffGuiCommand) void
Launch the visual diff tool.
DiffGui(RevSpec, DiffGuiCommand) void
Launch the visual diff tool.
DragCopyGui(DragCopyGuiCommand) void
Copy the selected files to the desired directory.
DragCopyGui(string, string, DragCopyGuiCommand) void
Copy the selected files to the desired directory.
DragMoveGui(DragMoveGuiCommand) void
Move the selected files to the desired directory.
DragMoveGui(string, string, DragMoveGuiCommand) void
Move the selected files to the desired directory.
EditIgnoreFiltersGui(EditIgnoreFiltersGuiCommand) void
Show the TortoiseHg dialog for editing ignore filters for the repository.
EmailGui(EmailGuiCommand) void
Send changesets by email.
EndExecute(IAsyncResult) void
Finalizes the asynchronous execution started with BeginExecute(Repository, IGuiCommand, AsyncCallback).
Execute(IGuiCommand) void
Executes the given IGuiCommand command against the Mercurial repository.
ForgetGui(ForgetGuiCommand) void
Show the TortoiseHg dialog for forgetting tracked files.
GuessGui(GuessGuiCommand) void
Show the TortoiseHg dialog for guessing previous renames or copies.
ImportGui(ImportGuiCommand) void
Show the TortoiseHg dialog for importing patches into the repository or the patch queue.
InitGui(InitGuiCommand) void
Show the TortoiseHg dialog for initializing a new repository.
LogGui(LogGuiCommand) void
Open the repository explorer for the repository.
ManifestGui(ManifestGuiCommand) void
Display the current or given revision of the project manifest.
MergeGui(MergeGuiCommand) void
Show the TortoiseHg dialog for merging another revision with the local one.
MoveGui(MoveGuiCommand) void
Show the move file dialog.
MoveGui(string, string, MoveGuiCommand) void
Show the move file dialog.
MPatchGui(MPatchGuiCommand) void
Attempt to resolve conflicts in a .rej file.
MPatchGui(string, MPatchGuiCommand) void
Attempt to resolve conflicts in a .rej file.
Parent(Changeset) Changeset
Retrieve first parent of changeset.
Parent(RevSpec) Changeset
Retrieve first parent of revision.
PurgeGui(PurgeGuiCommand) void
Purge unknown and/or ignore files from repository.
QueueGui(QueueGuiCommand) void
Show the Mercurial queue tool.
QueueManagerGui(QueueManagerGuiCommand) void
Manage multiple MQ patch queues.
QueueReorderGui(QueueReorderGuiCommand) void
Reorder unapplied MQ patches.
RebaseGui(RebaseGuiCommand) void
Rebase changesets.
RebaseGui(RevSpec, RevSpec, RebaseGuiCommand) void
Rebase changesets.
RecoveryGui(RecoveryGuiCommand) void
Show the TortoiseHg dialog for recovery for the repository.
RejectsGui(RejectsGuiCommand) void
Manually resolve rejected patch chunks.
RejectsGui(string, RejectsGuiCommand) void
Manually resolve rejected patch chunks.
RemoveGui(RemoveGuiCommand) void
Show the TortoiseHg file status dialog in revert mode, for removing or reverting files.
RenameGui(RenameGuiCommand) void
Show the rename file dialog.
RenameGui(string, string, RenameGuiCommand) void
Show the rename file dialog.
RepoConfigGui(RepoConfigGuiCommand) void
Show the repository configuration editor.
ResolveGui(ResolveGuiCommand) void
Shows the resolve dialog.
RevertGui(RevertGuiCommand) void
Revert selected files.
SearchGui(SearchGuiCommand) void
Grep/search the repository.
ShelveGui(ShelveGuiCommand) void
Open the shelve tool for the repository.
StatusGui(StatusGuiCommand) void
Browse working directory status.
StripGui(RevSpec, StripGuiCommand) void
Strip changesets from the repository.
StripGui(StripGuiCommand) void
Strip changesets from the repository.
SynchronizeGui(SynchronizeGuiCommand) void
Synchronize the repository with other repositories.
TagGui(RevSpec, string, TagGuiCommand) void
Open the Tag gui.
TagGui(TagGuiCommand) void
Open the Tag gui.
UpdateGui(RevSpec, UpdateGuiCommand) void
Update/checkout changeset to working directory.
UpdateGui(UpdateGuiCommand) void
Update/checkout changeset to working directory.