mq-patch & Vim
Update: I forgot about the "len > 0" test. Thx @padenot for the quick fix.
Update2: Thanks to @hoaproject, now it works even if Vim is not open in the Root directory.
If you use the Mercurial Queues (and you should!)
and Vim, you may want to know which patch you are working on.
Here is how I managed to put the name of the current patch in my status bar:
Here is the full code for my status bar (part of this code is from this guy):