changeset 5843 | 83c354c4d529 |
parent 5836 | c5c9a022bd9a |
child 5915 | d0576d065993 |
--- a/mercurial/cmdutil.py Wed Jan 09 21:30:13 2008 +0900 +++ b/mercurial/cmdutil.py Wed Jan 09 21:30:35 2008 +0900 @@ -462,7 +462,7 @@ if len(pats) > 1 or util.patkind(pats[0], None)[0]: raise util.Abort(_('with multiple sources, destination must be an ' 'existing directory')) - if dest.endswith(os.sep) or os.altsep and dest.endswith(os.altsep): + if util.endswithsep(dest): raise util.Abort(_('destination %s is not a directory') % dest) tfn = targetpathfn