Mercurial > public > mercurial-scm > hg-stable
diff mercurial/hg.py @ 12144:be9c4131a8f4
clone, patch, convert: use hex(nullid) instead of '0'*40
author | Martin Geisler <mg@lazybytes.net> |
---|---|
date | Thu, 02 Sep 2010 12:08:13 +0200 |
parents | b1ae33b813cb |
children | 01dc8ba3e032 |
line wrap: on
line diff
--- a/mercurial/hg.py Thu Sep 02 11:20:23 2010 +0200 +++ b/mercurial/hg.py Thu Sep 02 12:08:13 2010 +0200 @@ -311,7 +311,8 @@ # we need to re-init the repo after manually copying the data # into it dest_repo = repository(ui, dest) - src_repo.hook('outgoing', source='clone', node='0'*40) + src_repo.hook('outgoing', source='clone', + node=node.hex(node.nullid)) else: try: dest_repo = repository(ui, dest, create=True)