[PATCH] Fix typo in module reference in copyfile exception (causesa stack dump)

Andrei Vermel avermel at mail.ru
Tue Feb 6 12:35:09 CST 2007


Sorry, wrong attachment in previous post. This is the proper one.

# HG changeset patch
# User "Andrei Vermel <avermel at mail.ru>"
# Date 1170709776 -10800
# Node ID 4fc842257baf8f6ec3f69bd10ed3e7fb7610e381
# Parent  cbe034b2db65c61643118324601b7ec768370d59
Fix wrong module reference in copyfile exception

diff --git a/mercurial/util.py b/mercurial/util.py
--- a/mercurial/util.py 
+++ b/mercurial/util.py 
@@ -579,7 +579,7 @@ def copyfile(src, dest):
         shutil.copyfile(src, dest)
         shutil.copymode(src, dest)
     except shutil.Error, inst:
-        raise util.Abort(str(inst))
+        raise Abort(str(inst))
 
 def copyfiles(src, dst, hardlink=None):
     """Copy a directory tree using hardlinks if possible"""


----- Original Message ----- 
From: "Andrei Vermel" <avermel at mail.ru>
To: <mercurial-devel at selenic.com>
Sent: Tuesday, February 06, 2007 12:19 AM
Subject: [PATCH] Fix typo in module reference in copyfile exception (causesa stack dump)


>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix_exception.dat
Type: application/octet-stream
Size: 662 bytes
Desc: not available
Url : http://www.selenic.com/pipermail/mercurial-devel/attachments/20070206/a23ff10d/fix_exception.obj


More information about the Mercurial-devel mailing list