[API] How to check if a remote repository contains a revision

Matt Mackall mpm at selenic.com
Sat Jan 14 18:48:34 CST 2012


On Sun, 2012-01-15 at 00:59 +0100, Arne Babenhauserheide wrote:
> Am Samstag, 14. Januar 2012, 17:43:04 schrieb Matt Mackall:
> > On Sun, 2012-01-15 at 00:25 +0100, Arne Babenhauserheide wrote:
> > > Am Sonntag, 15. Januar 2012, 00:08:24 schrieb Pierre-Yves David:
> > > > On 14 janv. 2012, at 23:59, Arne Babenhauserheide wrote:
> > > > repo have  a known([node,…]) method
> > 
> > ..except when they don't.
> 
> Are there some which are not covered by the subrepo testsuite?

Whenever you're communicating with a pre-1.9 hg. Again, read
commands.identify, see how it uses repo.lookup, which is a much older
and widespread piece of the wire protocol.

-- 
Mathematics is the supreme nostalgia of our time.




More information about the Mercurial-devel mailing list