src/access.py
changeset 53 853444c5d393
parent 52 f9eb98bb0791
child 62 f1e319d3672a
--- a/src/access.py	Fri Feb 20 15:08:50 2009 +0000
+++ b/src/access.py	Fri Feb 20 15:19:33 2009 +0000
@@ -10,6 +10,7 @@
 
 from mercurial.i18n import _
 import mercurial.util
+import mercurial.node
 
 import os
 import ruleset
@@ -39,7 +40,7 @@
         '''return if access allowed, raise exception if not.'''
         if not self.allow(ctx):
             raise mercurial.util.Abort(_('%s: access denied for changeset %s') %
-                (__name__, ctx.short()))
+                (__name__, mercurial.node.short(ctx.node())))
 
 def hook(ui, repo, hooktype, node=None, source=None, **kwargs):
     if hooktype != 'pretxnchangegroup':