Mercurial > public > mercurial-scm > hg
comparison mercurial/debugcommands.py @ 50945:f7c35a645c2e
debugdeltafind: migrate `opts` to native kwargs
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Mon, 21 Aug 2023 16:58:23 -0400 |
parents | 32fe4af9971d |
children | 8e5083590cfe |
comparison
equal
deleted
inserted
replaced
50944:32fe4af9971d | 50945:f7c35a645c2e |
---|---|
1024 The revision use the revision number of the target storage (not changelog | 1024 The revision use the revision number of the target storage (not changelog |
1025 revision number). | 1025 revision number). |
1026 | 1026 |
1027 note: the process is initiated from a full text of the revision to store. | 1027 note: the process is initiated from a full text of the revision to store. |
1028 """ | 1028 """ |
1029 opts = pycompat.byteskwargs(opts) | |
1030 if arg_2 is None: | 1029 if arg_2 is None: |
1031 file_ = None | 1030 file_ = None |
1032 rev = arg_1 | 1031 rev = arg_1 |
1033 else: | 1032 else: |
1034 file_ = arg_1 | 1033 file_ = arg_1 |
1035 rev = arg_2 | 1034 rev = arg_2 |
1036 | 1035 |
1037 rev = int(rev) | 1036 rev = int(rev) |
1038 | 1037 |
1039 revlog = cmdutil.openrevlog(repo, b'debugdeltachain', file_, opts) | 1038 revlog = cmdutil.openrevlog( |
1039 repo, b'debugdeltachain', file_, pycompat.byteskwargs(opts) | |
1040 ) | |
1040 p1r, p2r = revlog.parentrevs(rev) | 1041 p1r, p2r = revlog.parentrevs(rev) |
1041 | 1042 |
1042 if source == b'full': | 1043 if source == b'full': |
1043 base_rev = nullrev | 1044 base_rev = nullrev |
1044 elif source == b'storage': | 1045 elif source == b'storage': |