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

Pierre-Yves David pierre-yves.david at ens-lyon.org
Sat Jan 14 23:08:24 UTC 2012


On 14 janv. 2012, at 23:59, Arne Babenhauserheide wrote:

> Hi,
> 
> How can I check with the internal commands, if a remote repository of any kind contains a given revision?

repo have  a known([node,…]) method

> And is it possible to pull only up to a certain revision?
> 
> Something like 
> 
> 		  subrepo._repo.pull(other, rev=revision)

Yes, 

 def pull(self, remote, heads=None, force=False)

see heads

> 
> Best wishes,
> Arne
> _______________________________________________
> Mercurial-devel mailing list
> Mercurial-devel at selenic.com
> http://selenic.com/mailman/listinfo/mercurial-devel




More information about the Mercurial-devel mailing list