C# Class Mercurial.Versions.MercurialVersionBase

This class, and its descendants implements version-specific features of Mercurial.
Mostrar archivo Open project: TargetProcess/Target-Process-Plugins Class Usage Examples

Public Methods

Method Description
AssignCurrent ( System.Version version ) : void

This method finds the correct MercurialVersionBase implementation, based on the version.

GetImplementationFor ( System.Version version ) : MercurialVersionBase

This method finds the correct MercurialVersionBase implementation, based on the version.

MergeToolOption ( string tool ) : IEnumerable

This method produces a collection of options and arguments to pass on the command line to specify the merge tool.

WaitForLocksToDissipate ( string repositoryPath ) : void

This method will wait for lingering POSIX-style file locks to dissipate before continuing, to get around problems with such locks in pre-1.8 Mercurial.

Method Details

AssignCurrent() public static method

This method finds the correct MercurialVersionBase implementation, based on the version.
/// Internal error, unable to find correct implementation for Mercurial version . ///
public static AssignCurrent ( System.Version version ) : void
version System.Version /// The version to find the correct implementation for. ///
return void

GetImplementationFor() public static method

This method finds the correct MercurialVersionBase implementation, based on the version.
/// is null. ///
public static GetImplementationFor ( System.Version version ) : MercurialVersionBase
version System.Version /// The version to find the correct implementation for. ///
return MercurialVersionBase

MergeToolOption() public method

This method produces a collection of options and arguments to pass on the command line to specify the merge tool.
public MergeToolOption ( string tool ) : IEnumerable
tool string /// The merge tool to generate options and arguments for. ///
return IEnumerable

WaitForLocksToDissipate() public method

This method will wait for lingering POSIX-style file locks to dissipate before continuing, to get around problems with such locks in pre-1.8 Mercurial.
/// is null or empty. ///
public WaitForLocksToDissipate ( string repositoryPath ) : void
repositoryPath string /// The path to the repository that the locks exists in. ///
return void