equal
deleted
inserted
replaced
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: |