mercurial/hg.py
changeset 3069 bc3fe3b5b785
parent 3034 3acb76f0124d
child 3188 705e30c0a230
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_