[issue724] Trailing slash in cp target is ignored

kiilerix-gmail mercurial-bugs at selenic.com
Mon Sep 3 03:00:05 CDT 2007

New submission from kiilerix-gmail <kiilerix at gmail.com>:

I expect a trailing slash on cp destination to be interpreted as "target is a
directory, copy into it". If the target doesn't exist as directory it should
either be created or the command should fail.

Test script:
hg init .
touch foo
hg com -A -m zup
hg cp foo bar/ # should be different than "hg cp foo bar"
touch bar/something # should succeed if bar has been created

messages: 3956
nosy: kiilerix-gmail
priority: bug
status: unread
title: Trailing slash in cp target is ignored

Mercurial issue tracker <mercurial-bugs at selenic.com>

More information about the Mercurial-devel mailing list