diff -r 60338880d265 -r 36a3016811d1 mercurial/hg.py --- 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)