[issue1322] hg clone of a URL with a typo silently clones the ancestor of the forest

Olivier Grisel mercurial-bugs at selenic.com
Fri Oct 3 11:01:34 CDT 2008


New submission from Olivier Grisel <olivier.grisel at ensta.org>:

Suppose I have a simple forest with structure:

  myforest/.hg
  myforest/myrepo1/.hg
  myforest/myrepo2/.hg

Suppose I want to clone myrepo2 but with a typo in the URL I do:

  http://server/myforest/myrepo22

Instead of failing I get a local folder "myrepo22/" with the content of the
"myforest/" repo instead of getting an error message such as

   abort: 'http://server/myforest/myrepo22' does not appear to be an hg repository!

When the typo is not easily spotable this behavior can be very confusing.

----------
messages: 7297
nosy: ogrisel
priority: bug
status: unread
title: hg clone of a URL with a typo silently clones the ancestor of the forest

____________________________________________________
Mercurial issue tracker <mercurial-bugs at selenic.com>
<http://www.selenic.com/mercurial/bts/issue1322>
____________________________________________________



More information about the Mercurial-devel mailing list