comparison mercurial/hg.py @ 3069:bc3fe3b5b785

Never apply string formatting to generated errors with util.Abort. Otherwise error messages containing % chars yield errors or worse. Fixed (hopefully) all users of util.Abort.
author Thomas Arendsen Hein <thomas@intevation.de>
date Fri, 08 Sep 2006 09:36:18 +0200
parents 3acb76f0124d
children 705e30c0a230
comparison
equal deleted inserted replaced
3068:547d1a4aa105 3069:bc3fe3b5b785
113 113
114 dest = localpath(dest) 114 dest = localpath(dest)
115 source = localpath(source) 115 source = localpath(source)
116 116
117 if os.path.exists(dest): 117 if os.path.exists(dest):
118 raise util.Abort(_("destination '%s' already exists"), dest) 118 raise util.Abort(_("destination '%s' already exists") % dest)
119 119
120 class DirCleanup(object): 120 class DirCleanup(object):
121 def __init__(self, dir_): 121 def __init__(self, dir_):
122 self.rmtree = shutil.rmtree 122 self.rmtree = shutil.rmtree
123 self.dir_ = dir_ 123 self.dir_ = dir_