# HG changeset patch # User Augie Fackler # Date 1334964819 18000 # Node ID 2c9f4c1686faf483228a9de32db63a084a7ac5f7 # Parent b450448a9033ddd95b5b8e9dfc367ed2d682d3cb svnrepo: don't break on old hg versions that lack pushkey diff --git a/hgsubversion/svnrepo.py b/hgsubversion/svnrepo.py --- a/hgsubversion/svnrepo.py +++ b/hgsubversion/svnrepo.py @@ -84,7 +84,7 @@ def generate_repo_class(ui, repo): def svn_commitctx(self, ctx): """Commits a ctx, but defeats manifest recycling introduced in hg 1.9.""" hash = self.commitctx(ctxctx(ctx)) - if phases is not None: + if phases is not None and getattr(self, 'pushkey', False): # set phase to be public self.pushkey('phases', self[hash].hex(), str(phases.draft), str(phases.public)) return hash