Search code examples
azuremercurialbitbucketazure-worker-rolesazure-cloud-services

Mercurial.NET do not clone a specified file from repository


I have a Microsoft Azure Cloud Service Worker Role application which can clone from Bitbucket/Mercurial repositories. After a successfull authentication I started to clone from the repository via SSH.

var repository = new Mercurial.Repository(<LOCALRESOURCEPATH>);

repository.Clone(repoUrl.ToString(), new Mercurial.CloneCommand().WithObserver(new Mercurial.DebugObserver()).WithUpdate(false).WithTimeout(100000));

I choose a very big number for the Timeout, because the size of the repository is minimum about 100-150 MB (it contains an Orchard source).

The code works fine, the Mercurial.NET starts to clone the content of the repository to the disc.

Than at one point (as you can see in the picture that visual c++ 2008 file) the transaction aborted.

But why? What can be the problem with this file?

enter image description here


Solution

  • It might be related to 255 characters file path limitation. Try to relocate the repository, for example to the folder C:\my_rep.