This project is read-only.

Use Case 2 - Connect to a http secured repository

The objective

Some tasks are used to manipulate or read remote repositories.
Those tasks should provide a User and a Password properties to provide a better way to connect to those repository than using a 'http//user:pass@domain/repos' approach.

The tasks that should be updated are:

Tasks
HgPull
HgPush
HgClone


Remarks: The use of a client certificate is "out-of-scope" for this use case.

The analysis

The repository path should be updated to integrate the user and pass info as defined in Mercurial documentation 1.
As a result, there will be two equivalent possibilities to specify credential:
<HgPush Destination="http://user@pass:domain/repos" />
<HgPush Destination="http://domain/repos" User="user" Password="pass" />

The advantage of the second possibility will be to provide as simple way to manage anonymous / connected section.

Related To

This use case is related to the following issue: HgPull - Login/Pass issue

Source(s)

1: Adding credential to url http://www.selenic.com/mercurial/hg.1.html#url-paths

Last edited Apr 27, 2010 at 9:49 PM by Faz, version 3

Comments

No comments yet.