mirror of
https://github.com/facebook/sapling.git
synced 2025-01-07 14:10:42 +03:00
display inifinitepush pull time
Reviewed By: StanislavGlebik Differential Revision: D6748718 fbshipit-source-id: c1b5b529d1c492017e07a67629d8908bb0d19bb4
This commit is contained in:
parent
a99b9eb0c2
commit
b00bfa1fa2
@ -725,6 +725,8 @@ def _update(orig, ui, repo, node=None, rev=None, **opts):
|
||||
_("'%s' does not exist locally - looking for it " +
|
||||
"remotely...\n") % mayberemote)
|
||||
# Try pulling node from remote repo
|
||||
pullstarttime = time.time()
|
||||
|
||||
try:
|
||||
cmdname = '^pull'
|
||||
pullcmd = commands.table[cmdname][0]
|
||||
@ -735,6 +737,8 @@ def _update(orig, ui, repo, node=None, rev=None, **opts):
|
||||
ui.warn(_('pull failed: %s\n') % sys.exc_info()[1])
|
||||
else:
|
||||
ui.warn(_("'%s' found remotely\n") % mayberemote)
|
||||
pulltime = time.time() - pullstarttime
|
||||
ui.warn(_("pull finished in %.3f sec\n") % pulltime)
|
||||
return orig(ui, repo, node, rev, **opts)
|
||||
|
||||
def _pull(orig, ui, repo, source="default", **opts):
|
||||
|
@ -681,6 +681,7 @@ Strip scratchontopofpublic commit and do hg update
|
||||
new changesets c70aee6da07d
|
||||
(run 'hg update' to get a working copy)
|
||||
'c70aee6da07d7cdb9897375473690df3a8563339' found remotely
|
||||
pull finished in * sec (glob)
|
||||
2 files updated, 0 files merged, 2 files removed, 0 files unresolved
|
||||
|
||||
Trying to pull from bad path
|
||||
@ -706,6 +707,7 @@ Strip commit and pull it using hg update with bookmark name
|
||||
new changesets d8fde0ddfc96
|
||||
(run 'hg update' to get a working copy)
|
||||
'scratch/mybranch' found remotely
|
||||
pull finished in * sec (glob)
|
||||
2 files updated, 0 files merged, 1 files removed, 0 files unresolved
|
||||
(activating bookmark scratch/mybranch)
|
||||
$ hg log -r scratch/mybranch -T '{node}'
|
||||
@ -735,6 +737,7 @@ Test debugfillinfinitepushmetadata
|
||||
new changesets 33910bfe6ffe:d8fde0ddfc96
|
||||
(run 'hg heads .' to see heads, 'hg merge' to merge)
|
||||
'd8fde0ddfc962183977f92d2bc52d303b8840f9d' found remotely
|
||||
pull finished in * sec (glob)
|
||||
2 files updated, 0 files merged, 1 files removed, 0 files unresolved
|
||||
$ echo file > file
|
||||
$ hg add file
|
||||
|
@ -60,6 +60,7 @@ Setup another client
|
||||
new changesets 0da81a72db1a
|
||||
(run 'hg update' to get a working copy)
|
||||
'scratch/lfscommit' found remotely
|
||||
pull finished in * sec (glob)
|
||||
1 files updated, 0 files merged, 0 files removed, 0 files unresolved
|
||||
(activating bookmark scratch/lfscommit)
|
||||
|
||||
|
@ -97,6 +97,7 @@ Download scratch commit. It also downloads a few public commits
|
||||
$ hg up -q ce87a066ebc28045311cd1272f5edc0ed80d5b1c
|
||||
'ce87a066ebc28045311cd1272f5edc0ed80d5b1c' does not exist locally - looking for it remotely...
|
||||
'ce87a066ebc28045311cd1272f5edc0ed80d5b1c' found remotely
|
||||
pull finished in * sec (glob)
|
||||
$ hg log --graph -T '{desc}'
|
||||
@ scratch
|
||||
|
|
||||
|
@ -202,6 +202,7 @@ Create new bookmark and try to pull it
|
||||
new changesets 36667a3f76e4:2885148f6198
|
||||
(run 'hg heads .' to see heads, 'hg merge' to merge)
|
||||
'scratch/branchtoupdateto1' found remotely
|
||||
pull finished in * sec (glob)
|
||||
2 files updated, 0 files merged, 1 files removed, 0 files unresolved
|
||||
|
||||
$ cat >> $HGRCPATH << EOF
|
||||
@ -221,4 +222,5 @@ Create new bookmark and try to pull it
|
||||
new changesets 1f558bd20eaa
|
||||
(run 'hg heads .' to see heads, 'hg merge' to merge)
|
||||
'scratch/branchtoupdateto2' found remotely
|
||||
pull finished in * sec (glob)
|
||||
1 files updated, 0 files merged, 1 files removed, 0 files unresolved
|
||||
|
Loading…
Reference in New Issue
Block a user