changeset 9024:10532b29cdee

context: improve arg-checking assert.
author Greg Ward <greg@gerg.ca>
date Fri, 03 Jul 2009 10:43:46 -0400
parents cd92a6968f70
children 28b1797b0040
files mercurial/context.py
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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