Commit Graph

9 Commits

Author SHA1 Message Date
Mads Kiilerich
09567db49a spelling: trivial spell checking 2015-10-17 00:58:46 +02:00
Laurent Charignon
05537e0c0f crecord: exit edition of hunk with non-zero status does not interrupt session
Before this patch, when editing a hunk, if the editor was exiting with a non-
zero status the crecord session would be aborted. This patch makes crecord
handle the failure and goes back to the state before the failed edition.
We use the new error reporting mechanism introduced in the previous patch to
notify the user of the issue.
2015-06-05 13:41:14 -07:00
Laurent Charignon
4fc3c4c465 record: fix record with change on moved file crashes (issue4619)
reverting fe807064739c, add a test to prevent the issue from coming back.
2015-04-22 13:56:30 -07:00
Laurent Charignon
ac26bdeb92 record_curses: add test for newly added files
We have a UI bug where toggling a newly added file twice in the curses
interface didn't mark it as selected. This test checks that the underlying
logic is working as expected, the next patch of the series fixes the UI bug.
2015-03-25 16:40:37 -07:00
Matt Harbison
c140481b78 test-commit-interactive-curses: backout 67380343474d
Now that the imports have been fixed up, and the platform EOL difference
eliminated, this test runs on Windows.
2015-03-21 12:01:05 -04:00
Matt Harbison
2a4fd713bf test-interactive: use stable EOL in various file generating routines
The seq.py and shell echo redirected to a file ends up with platform
specific EOL, which throws off the hash when the file is committed to
the test repo on Windows. The other option is to glob the hashes, but
the ability to see if they have changed might point out problems that
would otherwise be missed.
2015-03-21 11:56:43 -04:00
Matt Harbison
8a3f14eed1 test-commit-interactive-curses: #require 'tic'
When run on Windows, this test aborts:

@@ -20,7 +20,8 @@
   > X
   > EOF
   $ hg commit -i  -m "a" -d "0 0"
-  no changes to record
+  abort: No module named fcntl!
+  [255]
   $ hg tip
   changeset:   -1:000000000000
   tag:         tip

Maybe there's another way to get the screen size on Windows (it dies in
crecord.gethw()), but for now, quiet the test noise by skipping it if terminal
info compiler is unavailable.
2015-03-17 22:21:09 -04:00
Matt Harbison
9741c43e48 tests: replace uses of 'seq' with portable 'seq.py' 2015-03-17 21:47:47 -04:00
Laurent Charignon
8f36385e6f record: add tests for the curses recording interface 2015-03-12 14:42:55 -07:00