mercurial/hg.py
changeset 12144 be9c4131a8f4
parent 11818 b1ae33b813cb
child 12271 01dc8ba3e032
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: