"hg log" for remote repositories?

Jens Alfke jens at mooseyard.com
Thu Sep 13 14:41:24 CDT 2007


On 13 Sep '07, at 10:32 AM, Matt Mackall wrote:

> I suppose "ssh user at server hg log" or "firefox http://server" is  
> cheating?

This is for use in a GUI app that will display the files and revision  
history. I'd like it to be able to work [at least partially] on remote  
repositories as well as local ones.

The ssh command approach is a good idea, but of course it only works  
with ssh-based URLs, not HTTP.

> Sure. But incoming is doing exactly the same thing as pull over the
> wire. Which is why incoming -vp, etc., works.

Does that mean that "hg incoming" actually retrieves (and then  
ignores) all the contents of the revisions? As an experiment I ran "hg  
incoming http://selenic.com/repo/hg-stable" from an empty repository,  
and it took nearly a minute to run. I don't know how many bytes of  
data it pulled over the network, though.

> We could do log over the wire,
> but it would be a) very complicated or b) missing lots of features  
> or c)
> *SLOW*.

Hm. I don't know the implementation, but remote "log" seems like a  
subset of the "incoming"-from-empty-repo trick, only skipping the  
bodies of the change-sets.

--Jens
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://selenic.com/pipermail/mercurial/attachments/20070913/d58b75db/attachment.htm 


More information about the Mercurial mailing list