Mercurial > hg
changeset 2259:181b0643ffb1
fix a traceback when unbundling does not add any changesets
only run the hooks when some changesets has been added
author | Benoit Boissinot <benoit.boissinot@ens-lyon.org> |
---|---|
date | Thu, 11 May 2006 15:01:30 +0200 |
parents | 7e43d68f3900 |
children | 99d6cae511f7 |
files | mercurial/localrepo.py |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/localrepo.py Thu May 11 14:06:18 2006 +0200 +++ b/mercurial/localrepo.py Thu May 11 15:01:30 2006 +0200 @@ -1544,8 +1544,9 @@ " with %d changes to %d files%s\n") % (changesets, revisions, files, heads)) - self.hook('pretxnchangegroup', throw=True, - node=hex(self.changelog.node(cor+1)), source=srctype) + if changesets > 0: + self.hook('pretxnchangegroup', throw=True, + node=hex(self.changelog.node(cor+1)), source=srctype) tr.close()