equal
deleted
inserted
replaced
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) |