comparison mercurial/debugcommands.py @ 41943:1e75311d78f7

manifestcache: do not display data when using --add If the command invocation is about adding a new entry, we should remain terse (the same as we do for many commands).
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Thu, 14 Mar 2019 09:11:41 +0000
parents fbee66c90cef
children b74ef67573e5
comparison
equal deleted inserted replaced
41942:fbee66c90cef 41943:1e75311d78f7
1486 m = repo.manifestlog 1486 m = repo.manifestlog
1487 manifest = m[m.getstorage(b'').lookup(add)] 1487 manifest = m[m.getstorage(b'').lookup(add)]
1488 except error.LookupError as e: 1488 except error.LookupError as e:
1489 raise error.Abort(e, hint="Check your manifest node id") 1489 raise error.Abort(e, hint="Check your manifest node id")
1490 manifest.read() # stores revisision in cache too 1490 manifest.read() # stores revisision in cache too
1491 return
1491 1492
1492 cache = getcache() 1493 cache = getcache()
1493 if not len(cache): 1494 if not len(cache):
1494 ui.write(_('cache empty\n')) 1495 ui.write(_('cache empty\n'))
1495 else: 1496 else: