Mercurial > hg
comparison tests/test-commit-interactive-curses.t @ 42573:9ac1a5a4a64f
crecord: provide 'X' as a range-select mechanism
Differential Revision: https://phab.mercurial-scm.org/D6621
author | Kyle Lippincott <spectral@google.com> |
---|---|
date | Mon, 08 Jul 2019 13:10:34 -0700 |
parents | 75fd9421440b |
children | c06eba91c380 |
comparison
equal
deleted
inserted
replaced
42572:cd4f1b7c3192 | 42573:9ac1a5a4a64f |
---|---|
325 $ hg cat -r . x | 325 $ hg cat -r . x |
326 foo | 326 foo |
327 hello world | 327 hello world |
328 lower | 328 lower |
329 | 329 |
330 Test range select: unselect 3, 5, and 6, reselect 5, then go back up to 2 and | |
331 press 'X', unselecting (because 2 is currently selected) 5 (because it's the | |
332 start of the range) and 4, leaving 3 unselected. | |
333 | |
334 $ hg init $TESTTMP/range_select | |
335 $ cd $TESTTMP/range_select | |
336 >>> open('range_select', 'wb').write(b"1\n2\n3\n4\n5\n6\n7\n8\n9\n10\n") and None | |
337 $ hg add range_select | |
338 $ cat <<EOF >testModeCommands | |
339 > KEY_RIGHT | |
340 > KEY_RIGHT | |
341 > KEY_DOWN | |
342 > KEY_DOWN | |
343 > KEY_ENTER | |
344 > KEY_DOWN | |
345 > KEY_ENTER | |
346 > x | |
347 > KEY_UP | |
348 > x | |
349 > KEY_UP | |
350 > KEY_UP | |
351 > KEY_UP | |
352 > X | |
353 > c | |
354 > EOF | |
355 $ hg commit -i -m "range_select" -d "0 0" | |
356 $ hg cat -r tip range_select | |
357 1 | |
358 7 | |
359 8 | |
360 9 | |
361 10 | |
362 $ cat range_select | |
363 1 | |
364 2 | |
365 3 | |
366 4 | |
367 5 | |
368 6 | |
369 7 | |
370 8 | |
371 9 | |
372 10 | |
373 | |
330 Check ui.interface logic for the chunkselector | 374 Check ui.interface logic for the chunkselector |
331 | 375 |
332 The default interface is text | 376 The default interface is text |
333 $ cp $HGRCPATH.pretest $HGRCPATH | 377 $ cp $HGRCPATH.pretest $HGRCPATH |
334 $ chunkselectorinterface() { | 378 $ chunkselectorinterface() { |