Retrieving log from remote repository

Adrian Buehlmann adrian at cadifra.com
Tue Mar 25 18:43:19 CDT 2008


On 25.03.2008 18:05, Dmitry Nezhevenko wrote:
> Hi. SVN has followed command, which is currently useful for me:
> 	svn log --limit 1 <REPO>	
> 
> where <REPO> can be url to remote repository (http://, svn://,
> svn+ssh://). 
> 
> It retrieves last log message from VCS.
> 
> Is it any way to get same results for mercurial (without cloning repo).
> Remote repository can be not under my control so no server-side
> hooks/scripts are allowed.
> 
> Any way to get same behaviour from mercurial? As for me, parsing HTTP
> output by hands is not good solution.

See http://www.selenic.com/mercurial/wiki/index.cgi/FAQ
Entires:
4.18. How can I do a "hg log" of a remote repository?
4.19. How can I find out if there are new changesets in a remote repository?

You can get a raw text patch of the tipmost changeset like
this: http://selenic.com/repo/index.cgi/hg/raw-rev

"tip" -> http://www.selenic.com/mercurial/wiki/index.cgi/Tip




More information about the Mercurial mailing list