Fwd: Mercurial as a software repository

Matt Mackall mpm at selenic.com
Sat Aug 21 14:12:25 UTC 2010


On Sat, 2010-08-21 at 17:20 +0200, Roman Neuhauser wrote:
> # mg at lazybytes.net / 2010-08-21 12:03:30 +0200:
> >   hg manifest [-r REV]
> > 
> >   output the current or given revision of the project manifest
> > 
> >       Print a list of version controlled files for the given revision.
> >       If no revision is given, the first parent of the working directory
> >       is used, or the null revision if no revision is checked out.
> > 
> >       With -v, print file permissions, symlink and executable bits. With
> >       --debug, print file revision hashes.
> > 
> >       Returns 0 on success.
> > 
> > In other words, it does not take a URL on the command line, only an
> > optional revision number.
> > 
> > Next step is to try the global --repository/-R option and then you'll
> > see that this does not work on a remote repository:
> > 
> >   % hg -R http://bitbucket.org/mg/test manifest
> >   abort: repository 'http://bitbucket.org/mg/test' is not local
> > 
> > There is no built-in command in Mercurial for listing the manifest on a
> > remote repository. You need to clone it first.
> 
> what's the reason for this limitation?  remote manifest would have
> been useful to me on a few occasions.

There's no protocol support for it.

And there's no protocol support for it because Mercurial is a DVCS and
not doing local operations on central repositories (slowly) is _the
whole point_.

-- 
Mathematics is the supreme nostalgia of our time.





More information about the Mercurial mailing list