Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apply post-mortem review comments #711

Merged
merged 5 commits into from
Oct 16, 2023
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions nbdime/args.py
Original file line number Diff line number Diff line change
Expand Up @@ -472,12 +472,6 @@ def add_merge_args(parser):
default=True,
help="disallow deletion of transient data such as outputs and "
"execution counts in order to resolve conflicts.")
parser.add_argument(
'--no-base',
dest='show_base',
action="store_false",
default=True,
help="Don't display the base version.")


filename_help = {
Expand Down Expand Up @@ -545,7 +539,6 @@ def args_for_server(arguments):
workdirectory='cwd',
base_url='base_url',
hide_unchanged='hide_unchanged',
show_base='show_base',
identical_lines_margin='identical_lines_margin',
)
ret = {kmap[k]: v for k, v in vars(arguments).items() if k in kmap}
Expand Down
11 changes: 5 additions & 6 deletions nbdime/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,11 +256,6 @@ class Merge(_Diffing):
"execution counts in order to resolve conflicts.",
).tag(config=True)

show_base = Bool(
True,
help="Whether to show the base version (4-panels) or not (3-panels).",
).tag(config=True)


class GitDiff(Diff):
use_filter = Bool(
Expand All @@ -283,7 +278,11 @@ class NbMerge(Merge):
pass

class NbMergeWeb(Web, Merge):
pass

show_base = Bool(
True,
help="Whether to show the base version (4-panels) or not (3-panels).",
).tag(config=True)

class NbShow(Show):
pass
Expand Down
11 changes: 10 additions & 1 deletion nbdime/webapp/nbmergeweb.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,13 @@ def build_arg_parser():
add_diff_args(parser)
add_merge_args(parser)
add_web_args(parser, 0)
parser.add_argument(
"--no-base",
dest="show_base",
action="store_false",
default=True,
help="Don't display the base version."
)
add_filename_args(parser, ["base", "local", "remote"])
parser.add_argument(
'--out',
Expand All @@ -55,7 +62,9 @@ def main(args=None):
rel_url='merge',
base=base, local=local, remote=remote,
**args_for_browse(arguments)),
**args_for_server(arguments))
**args_for_server(arguments),
show_base="show_base",
fcollonval marked this conversation as resolved.
Show resolved Hide resolved
)


if __name__ == "__main__":
Expand Down
Loading
Loading