Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I was wondering if there is any way to operate on a remote repository directly with mercurial?

I am building a Dreamweaver Mercurial plugin, and I would like to be able to list directories without having to clone the entire repository. Is this possible?

I tried using locate *, but when I use the command with hg it aborts with the message that the repository is not local, with local repositories of course it works.

share|improve this question
    
Did you ever have success with creating your dreamweaver plugin for hg? –  Chris Marisic Jul 26 '11 at 15:20
    
I did get a basic version functionally working. I may be able to find a copy of the source if you are interested. It was programmable in C#, with unmanaged C doing the communication with the dreamweaver API - I marshaled the unmanaged code into managed C# iirc. The other catch is the general plugin was an incomplete integration solution using a mysql redmine database to display a custom project tree with browsable repositories listed in this directory tree. –  Joshua Enfield Jul 26 '11 at 18:04
    
You had me up to the mysql part, I'm not sure whether I'd be able to apply enough resources to replace that or want to deal with running mysql (especially for a pure web designer to use) –  Chris Marisic Jul 26 '11 at 21:24
add comment

1 Answer

up vote 3 down vote accepted

That can't be done as part of the wire protocol, so you'll need to have a local repository. That said, there's relatively little you can do without a local repo in Mercurial, so it makes sense to require (probably even help the user have) a local repo.

share|improve this answer
    
One of the benefits of using a DVCS is the local repository, so I think cloning the whole repo is better anyway. –  apollodude217 Jan 13 '11 at 20:45
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.