On Wed, May 19, 2010 at 12:34 PM, Tony Mechelynck wrote:
> ...
> .... The problem with that is that though it
> is possible to say "this is the same revision as that", it is not obvious,
> when different, to say which is the latest one. For that we would need a
> time reference or something.
> ...


This may be handled with a mercurial hook that creates a source file
(after each commit or update command) defining a variable whose value
is the hash of the last changeset. With this source file built into
vim, the hash value could then be printed with the ':version' command,
for example.

This is better explained in
http://hgbook.red-bean.com/read/handling-repository-events-with-hooks.html


Xavier

-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Raspunde prin e-mail lui