![]() Once the key is added, a generated SSH URL can be used along with the specified passphrase instead of a password that is used for HTTP(S) URL: ![]() Linking a database to a Mercurial repository using SSH protocolĭetailed steps on how to generate SSH key pair as well as how to add a public key to a repository are described in the How to link SQL Server database to a Git repository article. Some online Mercurial repository hosting services require an account username and a password for authentication, while others require an email in combination with a password for the user account To browse for the existing projects, use the Browse for folder button to open the Choose project dialog: The Project field allows the user to create a separate folder/project for any database (which is recommended), directly from the Source control setup window and without the need to switch from SQL Server Management Studio to any other application. By default the username and password are not mandatory when working with Mercurial over the File protocol: When working with a local file system, a username and password are not required in most of the cases, since the current user will have the necessary permissions and the folder selected to be a Mercurial repository will not be password protected. The following command will clone a remote Mercurial repository in a local folder: Hg init –config=python: “C:\Users\Mara\Desktop\Mercurial”Įither by using the context menu in Windows Explorer or a command executed through the CLI, the result will be a folder structure which represents a mercurial repository:īesides initializing a repository, a remote repository can be cloned to a local file system and used in the same way as the initialized one In this specific case, a command is as follows: This option opens the New repository dialog:Ĭlicking the Create button will initialize the selected folder as a Mercurial repository.Īs shown in the New repository dialog, there is a Mercurial command that can be executed to initialize a folder as a repository, instead of using the context menu option. If TortoiseHg is installed, there should be a menu item called Create repository here: To initialize a Mercurial repository, we’ll create a folder on a local file system, called MercurialRepo and while the folder is opened, right-click to bring up the context menu. In order to use a local folder as a Mercurial repository, it has to be either initialized or a remote Mercurial repository needs to be cloned to a local folder. In addition to TortoiseHg, any other Mercurial client can be used to initialize or clone a Mercurial repository This means that a folder on a local file system can be created and, in a few clicks, initialized as a Mercurial repository. TortoiseHg is a free Mercurial client that integrates into Windows as a shell component. To demonstrate how to link a database to a Mercurial repository hosted by the local file system, TortoiseHg will be used. Linking a database to a Mercurial repository using the File protocol When Mercurial is selected in the first tab, the System login tab is as follows: ![]() ![]() The first step in order to link a database to any Mercurial repository is to make sure that the Mercurial item is selected in the Connection type tab from the Source control system drop-down list: The goal of this article is to cover various ways of linking a database to a Mercurial repository with a focus on specific information (parameters) that should be used in the Source control setup window depending on the used Mercurial repository. Note: The information describing the steps common to all source control systems is not included in this article. ![]() These steps are covered in the How to link a database to source control article. To link a database to a Mercurial repository, follow the common steps through the Source control setup window. The following protocols will be used: File, HTTP, HTTPS and SSH. No additional configuration is required after the installation Any of the source install, Inno Setup Installer or MSI installer contains the command-line client, as well as TortoiseHg executable. When working with Mercurial, it is a requirement to have a Mercurial command-line client installed on the same machine where ApexSQL Source Control is installed. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |