Mercurial > public > mercurial-scm > hg
comparison mercurial/localrepo.py @ 17293:d3f84ccc5495 stable
pushkey: add more verbose debug output regarding pushkey
Very few data are displayed now, making it hard to debug phases and obsolete
related issues.
author | Pierre-Yves David <pierre-yves.david@logilab.fr> |
---|---|
date | Sat, 28 Jul 2012 12:28:35 +0200 |
parents | 16fad7323e56 |
children | d2217df3a7cf |
comparison
equal
deleted
inserted
replaced
17292:8da6fe276a23 | 17293:d3f84ccc5495 |
---|---|
2538 return self.pull(remote, heads) | 2538 return self.pull(remote, heads) |
2539 | 2539 |
2540 def pushkey(self, namespace, key, old, new): | 2540 def pushkey(self, namespace, key, old, new): |
2541 self.hook('prepushkey', throw=True, namespace=namespace, key=key, | 2541 self.hook('prepushkey', throw=True, namespace=namespace, key=key, |
2542 old=old, new=new) | 2542 old=old, new=new) |
2543 self.ui.debug('pushing key for "%s:%s"\n' % (namespace, key)) | |
2543 ret = pushkey.push(self, namespace, key, old, new) | 2544 ret = pushkey.push(self, namespace, key, old, new) |
2544 self.hook('pushkey', namespace=namespace, key=key, old=old, new=new, | 2545 self.hook('pushkey', namespace=namespace, key=key, old=old, new=new, |
2545 ret=ret) | 2546 ret=ret) |
2546 return ret | 2547 return ret |
2547 | 2548 |
2548 def listkeys(self, namespace): | 2549 def listkeys(self, namespace): |
2549 self.hook('prelistkeys', throw=True, namespace=namespace) | 2550 self.hook('prelistkeys', throw=True, namespace=namespace) |
2551 self.ui.debug('listing keys for "%s"\n' % namespace) | |
2550 values = pushkey.list(self, namespace) | 2552 values = pushkey.list(self, namespace) |
2551 self.hook('listkeys', namespace=namespace, values=values) | 2553 self.hook('listkeys', namespace=namespace, values=values) |
2552 return values | 2554 return values |
2553 | 2555 |
2554 def debugwireargs(self, one, two, three=None, four=None, five=None): | 2556 def debugwireargs(self, one, two, three=None, four=None, five=None): |