WindowsConfiguration

Darcs can be run from the standard Windows command shell, cmd.exe, or from inside Cygwin. These two methods are slightly different due to differences in path names (drive letters, path separators).

Without Cygwin

With Cygwin

The Manual Process -- try this if you want a newer version of darcs than the pre-packaged version supplied above

The basics (with or without Cygwin):

Pushing patches to a remote server requires a SSH implementation such as putty [WWW] http://www.chiark.greenend.org.uk/~sgtatham/putty/ which supports both SCP and SFTP. Interactive password prompting will not work because the SSH clients are executed by darcs, so public key (AKA passwordless) authentication must be configured. For a putty-oriented tutorial see [WWW] http://www.tartarus.org/~simon/puttydoc/Chapter8.html#C8.

To enable access of remote repositories over ssh (with or without Cygwin, if you want to use ssh):

Finally (without Cygwin):

Finally (with Cygwin):

Solving problems with SSH

(This section entitled "Solving problems with SSH" is someone else's version of the same sort of hack described in the item above entitled "Finally (with Cygwin)".) (I had some problems with darcs push via SSH, so I decided to write this paragraph - maybe it will help someone)

For some reason, putting PuTTY's renamed files in darcs directory didn't work in my case. Firstly, I kept getting Host key verification failed error. It turned out that win32 darcs tried using Cygwin's ssh instead the one from PuTTY. Disabling ssh command from Cygwin gave me another error message: sh: /usr/bin/ssh: No such file or directory. This is when I realized darcs didn't want to use ssh.exe located in its directory. After some research I found a solution:

If your path contains spaces, you may experience problems (Darcs reports that it cannot find the command "C:\Program", for example). A work-around is to make sure that the commands are found through the %PATH% variable, and then you can set the commands without their paths:

Note that I am using the normal PuTTY installation in this last example.

Also remember that Windows does not use account names the same way as Windows. Your repository is therefore going to look like this: username@hostname:path

last edited 2005-12-29 18:00:38 by blk-215-95-202