context: improve arg-checking assert.
authorGreg Ward <greg@gerg.ca>
Fri, 03 Jul 2009 10:43:46 -0400
changeset 9024 10532b29cdee
parent 9023 cd92a6968f70
child 9026 28b1797b0040
context: improve arg-checking assert.
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