From bf64f89521749e242e861501e58f7b5616d0c722 Mon Sep 17 00:00:00 2001 From: Martin von Zweigbergk Date: Sat, 6 Nov 2021 16:08:00 -0700 Subject: [PATCH] demos: update conflict-resolution demo with recent changes Conflicts are now preserved in the working copy until their conflict markers are gone (they used to be considered resolved). --- README.md | 4 ++-- demos/demo_resolve_conflict.sh | 22 ++++++---------------- 2 files changed, 8 insertions(+), 18 deletions(-) diff --git a/README.md b/README.md index f1bf0c72e..39561f8e1 100644 --- a/README.md +++ b/README.md @@ -76,8 +76,8 @@ Features: This design also lets Jujutsu rebase merge commits correctly (unlike both Git and Mercurial). - - + + * **Automatic rebase** diff --git a/demos/demo_resolve_conflict.sh b/demos/demo_resolve_conflict.sh index 568d7475b..e612cbc2f 100755 --- a/demos/demo_resolve_conflict.sh +++ b/demos/demo_resolve_conflict.sh @@ -29,11 +29,12 @@ run_command "jj rebase -d b1" run_command "" run_command "# Huh, that seemed to succeed. Let'\''s take a" run_command "# look at the repo:" -pause 3 +pause 2 run_command "jj log" -pause 5 +pause 4 +run_command "jj status" +pause 3 run_command "# As you can see, the rebased commit has a" -run_command "# conflict. The working copy is on top of the" run_command "# conflict. The file in the working copy looks" run_command "# like this:" run_command "cat README" @@ -43,18 +44,7 @@ run_command "# Now we will resolve the conflict:" run_command "echo \"Hello earth!\" > README" pause 2 run_command "" -run_command "# The diff of the conflict resolution looks" -run_command "# like this:" -run_command "jj diff" -pause 5 -run_command "" -run_command "# We now squash the conflict resolution into" -run_command "# the conflicted parent change:" -run_command "jj squash" +run_command "# The status command no longer reports it:" +run_command "jj status" pause 2 -run_command "" -run_command "# Looks good now:" -run_command "jj log" -pause 3 -run_command "jj diff" '