Generating patches in Mercurial

I've looked for that in the manual, but I can't generate a patch for the last commit. I tried

hg qnew patch_name

but it does only file with

# HG changeset patch
# Parent a6a8e225d16ff5970a8926ee8d24272a1c099f9c

I also tried

hg export tip

but it doesn't do anything. I committed the changes exactly.

How to generate a patch file with the last commit in?


The command to do this is export:

$ hg export -o FILE -r REV

It doesn't require redirection and will thus work correctly on any platform/shell.