[Python-Dev] Generating patch files

"Martin v. Löwis" martin at v.loewis.de
Fri Mar 18 03:31:36 CET 2011

> I get "unknown revision" (listing the full expression text) when using
> Mercurial 1.6.3 (default version in Ubuntu 10.10).

Based on Baptiste's approach, I propose the script below to compute a 
patch. Please report whether it works for you.


base=`hg log --template {rev} -r'max(ancestors(default)-outgoing())'`
hg diff -r$base

More information about the Python-Dev mailing list