Simple command line to see what happened in a changeset?

Matt Mackall mpm at selenic.com
Mon Jul 9 18:16:10 CDT 2007


On Sat, Jul 07, 2007 at 11:51:47AM +0200, Thomas Klausner wrote:
> On Thu, Jul 05, 2007 at 11:09:28AM -0500, Matt Mackall wrote:
> > This is basically equivalent to:
> > 
> > hg export ab1234
> 
> Oh, even shorter, thanks.
> 
> I tried to use it without having a local copy by using -R.
> 
> 	hg -R /path/to/repo export ab1234
> works, but
> 	hg -R ssh://host//path/to/repo ab1234
> reports
> 	abort: repository 'ssh://host//path/to/repo' is not local
> ("log -r -vp" does the same)
> 
> Is there a way to get the same kind of output for a remote repository
> accessible via ssh?

Why yes, of course:

 ssh hg --cwd /path/to/repo export ab1234

Or, if that's too straight-forward, you can try:

hg incoming --bundle foo.hg -r ab1234
hg -R foo.hg export ab1234
rm foo.hg

-- 
Mathematics is the supreme nostalgia of our time.


More information about the Mercurial mailing list