Fossil

Check-in [cc265cab]
Login

Check-in [cc265cab]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Use the editor setting in amend test for interactive edits because it has precedence over both VISUAL and EDITOR.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: cc265caba7c239baf45df83ec57b7eaf68393e7e
User & Date: andybradford 2016-01-14 15:35:49
Context
2016-01-14
20:38
Pick up recent autosetup changes from upstream. ... (check-in: b2e6a234 user: mistachkin tags: trunk)
15:35
Use the editor setting in amend test for interactive edits because it has precedence over both VISUAL and EDITOR. ... (check-in: cc265cab user: andybradford tags: trunk)
14:20
Update the built-in SQLite to the latest 3.11.0 alpha version. ... (check-in: c9fad621 user: drh tags: trunk)
Changes
Unified Diff Ignore Whitespace Patch
Changes to test/amend.test.
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
test-comment 4 $UUID "revision 4 revised with -M"

prep-test "final comment" "final content"
if {[catch {exec which ed} result]} {
  if {$VERBOSE} { protOut "Install ed for interactive comment test: $result" }
  test-comment 5 $UUID "ed required for interactive edit"
} else {
  set env(EDITOR) "ed -s"
  set comment "interactive edited comment"
  fossil_maybe_answer "a\n$comment\n.\nw\nq\n" amend $UUID --edit-comment
  unset env(EDITOR)
  test-comment 5 $UUID $comment
}

########################################
# Test: NULL UUID                      #
########################################
fossil amend {} -close







|


<







372
373
374
375
376
377
378
379
380
381

382
383
384
385
386
387
388
test-comment 4 $UUID "revision 4 revised with -M"

prep-test "final comment" "final content"
if {[catch {exec which ed} result]} {
  if {$VERBOSE} { protOut "Install ed for interactive comment test: $result" }
  test-comment 5 $UUID "ed required for interactive edit"
} else {
  fossil settings editor "ed -s"
  set comment "interactive edited comment"
  fossil_maybe_answer "a\n$comment\n.\nw\nq\n" amend $UUID --edit-comment

  test-comment 5 $UUID $comment
}

########################################
# Test: NULL UUID                      #
########################################
fossil amend {} -close