Get a file from the tip

Pierre-Yves David pierre-yves.david at logilab.fr
Wed Nov 21 08:54:04 CST 2012


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


-- 
Pierre-Yves David

http://www.logilab.fr/

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20121121/9073c664/attachment.pgp>


More information about the Mercurial-devel mailing list