mercurial/hg.py
changeset 17159 36a3016811d1
parent 16705 c2d9ef43ff6c
child 17191 5884812686f7
equal deleted inserted replaced
17158:60338880d265 17159:36a3016811d1
   261         dest = ui.expandpath(dest)
   261         dest = ui.expandpath(dest)
   262 
   262 
   263     dest = util.urllocalpath(dest)
   263     dest = util.urllocalpath(dest)
   264     source = util.urllocalpath(source)
   264     source = util.urllocalpath(source)
   265 
   265 
       
   266     if not dest:
       
   267         raise util.Abort(_("empty destination path is not valid"))
   266     if os.path.exists(dest):
   268     if os.path.exists(dest):
   267         if not os.path.isdir(dest):
   269         if not os.path.isdir(dest):
   268             raise util.Abort(_("destination '%s' already exists") % dest)
   270             raise util.Abort(_("destination '%s' already exists") % dest)
   269         elif os.listdir(dest):
   271         elif os.listdir(dest):
   270             raise util.Abort(_("destination '%s' is not empty") % dest)
   272             raise util.Abort(_("destination '%s' is not empty") % dest)