comparison mercurial/util.py @ 4067:c620376b8fd6

Fix wrong module reference in copyfile exception
author Andrei Vermel <avermel@mail.ru>
date Tue, 06 Feb 2007 00:09:36 +0300
parents 3600b84656d3
children 5b1f663ef86d cc8a52229620
comparison
equal deleted inserted replaced
4066:cff3e4b4a8de 4067:c620376b8fd6
578 "copy a file, preserving mode" 578 "copy a file, preserving mode"
579 try: 579 try:
580 shutil.copyfile(src, dest) 580 shutil.copyfile(src, dest)
581 shutil.copymode(src, dest) 581 shutil.copymode(src, dest)
582 except shutil.Error, inst: 582 except shutil.Error, inst:
583 raise util.Abort(str(inst)) 583 raise Abort(str(inst))
584 584
585 def copyfiles(src, dst, hardlink=None): 585 def copyfiles(src, dst, hardlink=None):
586 """Copy a directory tree using hardlinks if possible""" 586 """Copy a directory tree using hardlinks if possible"""
587 587
588 if hardlink is None: 588 if hardlink is None: