mercurial/debugcommands.py
changeset 50546 9dcb00842769
parent 50545 720a23405fe9
child 50560 8020be6a9d28
equal deleted inserted replaced
50545:720a23405fe9 50546:9dcb00842769
  2640     elif file_ is None:
  2640     elif file_ is None:
  2641         opts['changelog'] = True
  2641         opts['changelog'] = True
  2642     r = cmdutil.openstorage(
  2642     r = cmdutil.openstorage(
  2643         repo.unfiltered(), b'debugnodemap', file_, pycompat.byteskwargs(opts)
  2643         repo.unfiltered(), b'debugnodemap', file_, pycompat.byteskwargs(opts)
  2644     )
  2644     )
  2645     if isinstance(r, manifest.manifestrevlog) or isinstance(r, filelog.filelog):
  2645     if isinstance(r, (manifest.manifestrevlog, filelog.filelog)):
  2646         r = r._revlog
  2646         r = r._revlog
  2647     if opts['dump_new']:
  2647     if opts['dump_new']:
  2648         if util.safehasattr(r.index, "nodemap_data_all"):
  2648         if util.safehasattr(r.index, "nodemap_data_all"):
  2649             data = r.index.nodemap_data_all()
  2649             data = r.index.nodemap_data_all()
  2650         else:
  2650         else: