# HG changeset patch # User Greg Ward # Date 2009-07-03 14:43:46 # Node ID 10532b29cdee993efd804c7d60a188347425ebaf # Parent cd92a6968f70ff8f06764959ec10c20c98f4edd9 context: improve arg-checking assert. diff --git a/mercurial/context.py b/mercurial/context.py --- a/mercurial/context.py +++ b/mercurial/context.py @@ -199,7 +199,9 @@ class filectx(object): 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