comparison mercurial/hg.py @ 40438:e5f54c4ec075 stable

copystore: provide unit to ui.makeprogress()
author Anton Shestakov <av6@dwimlabs.net>
date Wed, 14 Nov 2018 15:06:21 +0800
parents 7e3b6c4f01a2
children 437520219e0c
comparison
equal deleted inserted replaced
40437:d2ff0af6e959 40438:e5f54c4ec075
363 ''' 363 '''
364 destlock = None 364 destlock = None
365 try: 365 try:
366 hardlink = None 366 hardlink = None
367 topic = _('linking') if hardlink else _('copying') 367 topic = _('linking') if hardlink else _('copying')
368 with ui.makeprogress(topic) as progress: 368 with ui.makeprogress(topic, unit=_('files')) as progress:
369 num = 0 369 num = 0
370 srcpublishing = srcrepo.publishing() 370 srcpublishing = srcrepo.publishing()
371 srcvfs = vfsmod.vfs(srcrepo.sharedpath) 371 srcvfs = vfsmod.vfs(srcrepo.sharedpath)
372 dstvfs = vfsmod.vfs(destpath) 372 dstvfs = vfsmod.vfs(destpath)
373 for f in srcrepo.store.copylist(): 373 for f in srcrepo.store.copylist():