From patchwork Mon Sep 29 05:30:26 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [6,of,6,path,intent] commands: define intent for init From: Gregory Szorc X-Patchwork-Id: 6025 Message-Id: <69a784144e1ed85cc515.1411968626@3.1.168.192.in-addr.arpa> To: mercurial-devel@selenic.com Date: Sun, 28 Sep 2014 22:30:26 -0700 # HG changeset patch # User Gregory Szorc # Date 1411967620 25200 # Sun Sep 28 22:13:40 2014 -0700 # Node ID 69a784144e1ed85cc51589d3a8a2b6076ef1b028 # Parent b4762747cbc304126428d33317fd33328be1055c commands: define intent for init diff --git a/mercurial/commands.py b/mercurial/commands.py --- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -4243,9 +4243,9 @@ def init(ui, dest=".", **opts): See :hg:`help urls` for more information. Returns 0 on success. """ - hg.peer(ui, opts, ui.expandpath(dest), create=True) + hg.peer(ui, opts, ui.expandpath(dest, intent='init'), create=True) @command('locate', [('r', 'rev', '', _('search the repository as it is in REV'), _('REV')), ('0', 'print0', None, _('end filenames with NUL, for use with xargs')),