status output during clone
Adrian Buehlmann
adrian at cadifra.com
Fri Oct 16 21:48:10 UTC 2009
On 16.10.2009 22:09, Benoit Boissinot wrote:
> On Fri, Oct 16, 2009 at 9:56 PM, Sune Foldager <cryo at cyanite.org> wrote:
>> Matt Mackall wrote:
>>> On Fri, 2009-10-16 at 21:51 +0200, Adrian Buehlmann wrote:
>>>
>>>> Would it be useful to print the name of the checked-out branch
>>>> on clone?
>>>>
>>> Seems reasonable.
>>>
>> Indeed, but is 'checking out' the right words to use? I don't seem to
>> recall 'checkout' being used much in Mercurial lingo?
>>
>
> "updating to" instead?
>
I'll do a full patch (adjusting test outputs) with:
diff --git a/mercurial/hg.py b/mercurial/hg.py
--- a/mercurial/hg.py
+++ b/mercurial/hg.py
@@ -307,7 +307,6 @@ def clone(ui, source, dest=None, pull=Fa
dest_repo.ui.setconfig('paths', 'default', abspath)
if update:
- dest_repo.ui.status(_("updating working directory\n"))
if update is not True:
checkout = update
for test in (checkout, 'default', 'tip'):
@@ -318,6 +317,8 @@ def clone(ui, source, dest=None, pull=Fa
break
except error.RepoLookupError:
continue
+ bn = dest_repo[uprev].branch()
+ dest_repo.ui.status(_("updating to branch %s\n") % bn)
_update(dest_repo, uprev)
return src_repo, dest_repo
More information about the Mercurial-devel
mailing list