changeset 17159 | 36a3016811d1 |
parent 16705 | c2d9ef43ff6c |
child 17191 | 5884812686f7 |
--- a/mercurial/hg.py Fri Jul 06 18:45:27 2012 +0900 +++ b/mercurial/hg.py Fri Jul 06 18:45:27 2012 +0900 @@ -263,6 +263,8 @@ dest = util.urllocalpath(dest) source = util.urllocalpath(source) + if not dest: + raise util.Abort(_("empty destination path is not valid")) if os.path.exists(dest): if not os.path.isdir(dest): raise util.Abort(_("destination '%s' already exists") % dest)