Show More
@@ -711,10 +711,12 b' def debugdata(ui, repo, file_, rev=None,' | |||||
711 | opts = pycompat.byteskwargs(opts) |
|
711 | opts = pycompat.byteskwargs(opts) | |
712 | if opts.get(b'changelog') or opts.get(b'manifest') or opts.get(b'dir'): |
|
712 | if opts.get(b'changelog') or opts.get(b'manifest') or opts.get(b'dir'): | |
713 | if rev is not None: |
|
713 | if rev is not None: | |
714 |
raise error.InputError( |
|
714 | raise error.InputError( | |
|
715 | _(b'cannot specify a revision with other arguments') | |||
|
716 | ) | |||
715 | file_, rev = None, file_ |
|
717 | file_, rev = None, file_ | |
716 | elif rev is None: |
|
718 | elif rev is None: | |
717 |
raise error.InputError(_(b' |
|
719 | raise error.InputError(_(b'please specify a revision')) | |
718 | r = cmdutil.openstorage(repo, b'debugdata', file_, opts) |
|
720 | r = cmdutil.openstorage(repo, b'debugdata', file_, opts) | |
719 | try: |
|
721 | try: | |
720 | ui.write(r.rawdata(r.lookup(rev))) |
|
722 | ui.write(r.rawdata(r.lookup(rev))) | |
@@ -2632,7 +2634,9 b' def debugnodemap(ui, repo, file_=None, *' | |||||
2632 | """write and inspect on disk nodemap""" |
|
2634 | """write and inspect on disk nodemap""" | |
2633 | if opts.get('changelog') or opts.get('manifest') or opts.get('dir'): |
|
2635 | if opts.get('changelog') or opts.get('manifest') or opts.get('dir'): | |
2634 | if file_ is not None: |
|
2636 | if file_ is not None: | |
2635 |
raise error.InputError( |
|
2637 | raise error.InputError( | |
|
2638 | _(b'cannot specify a file with other arguments') | |||
|
2639 | ) | |||
2636 | elif file_ is None: |
|
2640 | elif file_ is None: | |
2637 | opts['changelog'] = True |
|
2641 | opts['changelog'] = True | |
2638 | r = cmdutil.openstorage( |
|
2642 | r = cmdutil.openstorage( | |
@@ -3561,10 +3565,12 b' def debugsidedata(ui, repo, file_, rev=N' | |||||
3561 | opts = pycompat.byteskwargs(opts) |
|
3565 | opts = pycompat.byteskwargs(opts) | |
3562 | if opts.get(b'changelog') or opts.get(b'manifest') or opts.get(b'dir'): |
|
3566 | if opts.get(b'changelog') or opts.get(b'manifest') or opts.get(b'dir'): | |
3563 | if rev is not None: |
|
3567 | if rev is not None: | |
3564 |
raise error.InputError( |
|
3568 | raise error.InputError( | |
|
3569 | _(b'cannot specify a revision with other arguments') | |||
|
3570 | ) | |||
3565 | file_, rev = None, file_ |
|
3571 | file_, rev = None, file_ | |
3566 | elif rev is None: |
|
3572 | elif rev is None: | |
3567 |
raise error.InputError(_(b' |
|
3573 | raise error.InputError(_(b'please specify a revision')) | |
3568 | r = cmdutil.openstorage(repo, b'debugdata', file_, opts) |
|
3574 | r = cmdutil.openstorage(repo, b'debugdata', file_, opts) | |
3569 | r = getattr(r, '_revlog', r) |
|
3575 | r = getattr(r, '_revlog', r) | |
3570 | try: |
|
3576 | try: |
General Comments 0
You need to be logged in to leave comments.
Login now