changeset 292:19f201d64a16

git_handler: fix % formatting in ref errors.
author Augie Fackler <durin42@gmail.com>
date Thu, 25 Mar 2010 19:37:00 -0500
parents b69bda29e65c
children 8aaae306d46f
files hggit/git_handler.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/hggit/git_handler.py
+++ b/hggit/git_handler.py
@@ -584,11 +584,11 @@
                 for h in heads:
                     r = [ref for ref in refs if ref.endswith('/'+h)]
                     if not r:
-                        raise hgutil.Abort("ref %s not found on remote server")
+                        raise hgutil.Abort("ref %s not found on remote server" % h)
                     elif len(r) == 1:
                         want.append(refs[r[0]])
                     else:
-                        raise hgutil.Abort("ambiguous reference %s: %r"%(h, r))
+                        raise hgutil.Abort("ambiguous reference %s: %r" % (h, r))
             else:
                 want = [sha for ref, sha in refs.iteritems()
                         if not ref.endswith('^{}')]