Mercurial > public > mercurial-scm > hg-stable
comparison 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 |
comparison
equal
deleted
inserted
replaced
12143:bf840a3d1af2 | 12144:be9c4131a8f4 |
---|---|
309 ui.debug("copied %d files\n" % num) | 309 ui.debug("copied %d files\n" % num) |
310 | 310 |
311 # we need to re-init the repo after manually copying the data | 311 # we need to re-init the repo after manually copying the data |
312 # into it | 312 # into it |
313 dest_repo = repository(ui, dest) | 313 dest_repo = repository(ui, dest) |
314 src_repo.hook('outgoing', source='clone', node='0'*40) | 314 src_repo.hook('outgoing', source='clone', |
315 node=node.hex(node.nullid)) | |
315 else: | 316 else: |
316 try: | 317 try: |
317 dest_repo = repository(ui, dest, create=True) | 318 dest_repo = repository(ui, dest, create=True) |
318 except OSError, inst: | 319 except OSError, inst: |
319 if inst.errno == errno.EEXIST: | 320 if inst.errno == errno.EEXIST: |