# HG changeset patch # User Greg Ward # Date 1246632226 14400 # Node ID 10532b29cdee993efd804c7d60a188347425ebaf # Parent cd92a6968f70ff8f06764959ec10c20c98f4edd9 context: improve arg-checking assert. diff -r cd92a6968f70 -r 10532b29cdee mercurial/context.py --- a/mercurial/context.py Sat Jul 04 12:40:34 2009 +0200 +++ b/mercurial/context.py Fri Jul 03 10:43:46 2009 -0400 @@ -199,7 +199,9 @@ assert (changeid is not None or fileid is not None - or changectx is not None) + or changectx is not None), \ + ("bad args: changeid=%r, fileid=%r, changectx=%r" + % (changeid, fileid, changectx)) if filelog: self._filelog = filelog