--- a/mercurial/commands.py Tue Jun 28 02:34:14 2005 -0800
+++ b/mercurial/commands.py Tue Jun 28 02:38:33 2005 -0800
@@ -291,7 +291,7 @@
if link:
ui.debug("copying by hardlink\n")
- os.system("cp -al %s/.hg .hg" % source)
+ util.system("cp -al %s/.hg .hg" % source)
try:
os.remove(".hg/dirstate")
except: pass
@@ -871,6 +871,8 @@
return r
else:
return d()
+ except util.CommandError, inst:
+ u.warn("abort: %s\n" % inst.args)
except hg.RepoError, inst:
u.warn("abort: ", inst, "!\n")
except SignalInterrupt: