hg clone vs hg clone -U
Matt Mackall
mpm at selenic.com
Tue Aug 21 08:33:29 CDT 2007
On Tue, Aug 21, 2007 at 09:48:01PM +1000, Chui Tey wrote:
> I've noticed a strange behavior on 0.9.4-win32.exe
>
> hg clone -U src dest
>
> Works properly while
>
> hg clone src dest
>
> Results in files in dest having the wrong versions
> in the working directory, necessitating
>
> hg revert -r tip --all
>
> For the working directory to be identical to the src.
>
> Am I missing something here?
Yes. Your tip is probably not on the default branch. Clone updates to the 'default' branch.. by default.
--
Mathematics is the supreme nostalgia of our time.
More information about the Mercurial
mailing list