Get a file from the tip

v voldermort at hotmail.com
Wed Nov 21 09:00:18 CST 2012


Pierre-Yves David wrote
> On Wed, Nov 21, 2012 at 06:44:03AM -0800, v wrote:
>> I'm writing an extension that needs to get the tip revision of a specific
>> file. The only information passed to wrapper functions seems to be the
>> ui,
>> but I can't find any way to get from that to the content of a checked-in
>> file.
> 
> You need a repo object for that. Then use
> 
>     repo['tip'][file].data()
> 
> or something similar

That's where I'm stuck. How do I get a repo from a wrapfunction?



--
View this message in context: http://mercurial.808500.n3.nabble.com/Get-a-file-from-the-tip-tp3995095p3995099.html
Sent from the Development mailing list archive at Nabble.com.


More information about the Mercurial-devel mailing list