Commit graph

3425 commits

Author SHA1 Message Date
Paul Beckingham
724f29a50b Unit Tests
- Fixed ids, uuids, zshids, _ids, _uuids, _zshids commands to suppress
  headers that prevent these from being used.
2012-09-10 22:55:50 -04:00
Johannes Schlatow
55fe8810ce Bug #1104
Added unit test.

 Implemented a quick fix for the issue with a broken branch-off algorithm
 which disregarded the transaction boundaries in the undo.data file.
2012-09-10 14:42:44 +02:00
Scott Kostyshak
6a4fd6b133 Code Cleanup
- Remove an unused parameter.
2012-09-05 06:57:58 -04:00
Scott Kostyshak
ed8be2e2f2 Bug #1059
- Fixed Bug #1059, where CmdEdit incorrectly ran gc.
  (Thanks to Louis-Claude Canon)
2012-09-04 22:11:53 -04:00
Scott Kostyshak
7a6cdde571 Code Cleanup
- Constify some catches.
2012-09-04 22:04:41 -04:00
Paul Beckingham
589d8fab5c Prebuild
- Removed obsolete WIN32 reference that causes lots of verbose warnings
  from cmake.
2012-08-31 14:24:54 +02:00
Pietro Cerutti
b0af5f1496 Portability
- Use Time::Local (in Perl core) instead of Date::Parse

Signed-off-by: Paul Beckingham <paul@beckingham.net>
2012-08-28 17:27:13 +02:00
Paul Beckingham
e4e58e6571 Unit Tests
- Corrected FreeBSD rx unit tests.
2012-08-28 15:19:17 +02:00
Paul Beckingham
efeb00d423 Code Cleanup
- Typo in unit test.
- Removed obsolete ANALYSIS file.
2012-08-28 14:41:18 +02:00
Paul Beckingham
e796d7a2f1 Unit Tests
- Fixed syntax error in test.
- Fixed tests that were broken, but did not detect that.
2012-08-28 14:36:21 +02:00
Paul Beckingham
660f7bd98e Unit Tests
- Added direct TAP support to run_all via the '--verbose' option.
- Disabled regex tests that use \b for Cygwin.
2012-08-27 12:46:42 +02:00
Owen Clarke
7c408f4c5f Portabality
- Added comment to explain the use of perl in run_all to get the current
  epoch time in seconds
2012-08-23 08:42:01 +10:00
Owen Clarke
c5de9df963 Portability
- Changed bash-style syntax to sh syntax
- Reverted date printing to using perl as per 0cb71a8 for support on
  Solaris
2012-08-22 20:34:01 +10:00
Pietro Cerutti
98a5788a40 Use sh instead of bash in test/run_all 2012-08-21 16:23:09 +01:00
Paul Beckingham
968d1c32e8 Portability
- Removed unnecessary dependence on Bash: sh is POSIX, bash is not.
2012-08-21 16:13:45 +01:00
Paul Beckingham
23cd59a9a1 Chase warning due to the opaque type time_t in printf
Signed-off-by: Paul Beckingham <paul@beckingham.net>
2012-08-21 15:41:30 +01:00
Paul Beckingham
945127ad05 Portability
- Fixed warning that only appears on FreeBSD.
2012-08-21 11:11:55 +01:00
Scott Kostyshak
8850bc849f Documentation
- Updated the ChangeLog.
2012-08-15 22:46:43 -04:00
Scott Kostyshak
e89aa6cdbc Feature #1069
- Throw a custom error if uda.<uda-name>.type is not set
  but, for example, uda.<uda-name>.label is set.
2012-08-15 21:37:01 -04:00
Federico Hernandez
f1c156be39 Merge branch '2.2.0' of tasktools.org:task into 2.2.0 2012-08-14 00:59:11 +02:00
Federico Hernandez
b02bbb3c2c Unit tests
- run_all should also look for *.t.exe files on cygwin
2012-08-14 00:50:22 +02:00
Scott Kostyshak
60c1017e68 Code Cleanup
- Show no longer indents the warning.
2012-08-13 17:31:42 -04:00
Scott Kostyshak
109c6434f5 Code Cleanup
- Recycle an object.
- A second argument to task show now gives an error.
2012-08-13 08:10:22 -04:00
Scott Kostyshak
7b0b3210a5 Bug #1065
- Fixed bug #1065, where CmdShow issued messages in incorrect situations.
- Added unit tests.
2012-08-12 17:49:27 -04:00
Paul Beckingham
8d66d801c0 Enhancement
- Added virtual tag support for the first batch.  There will be follow-up
  work, tests and so on.
2012-08-12 13:46:23 -04:00
Scott Kostyshak
d73766484d Bug
- Fixed Bug #1060 where an error that was thrown by undo was not
  correctly caught and reported.
- Added a couple of tests to ensure that the correct error was
  caught and reported.
2012-08-11 07:03:56 -04:00
Scott Kostyshak
bd085a820d Code Cleanup
- Improved style and efficiency of Perl test code.
- Added alias expansion to feature log of bash completion script.
- Added comments to bash completion script.
2012-08-05 16:41:09 -04:00
Scott Kostyshak
54b2e10da4 Unit Tests
- Create a framework for testing bash completion.
- Test that aliases are expanded.
- Test that task commands are expanded.
2012-08-05 08:43:24 -04:00
Paul Beckingham
fd731dfd6e Bug
- Fixed ambiguous operator precedence in unit test.
2012-08-02 00:27:18 -04:00
Louis-Claude Canon
61b128ca88 Code Cleanup
- Failing test on last quarters.
2012-08-02 00:22:19 -04:00
Louis-Claude Canon
e9abac1d0f Code Cleanup
- Keep date formatting intact in arguments (necessary if the initial string
  contains optional information, as start or end of day).
2012-08-02 00:19:41 -04:00
Louis-Claude Canon
ec330921de Code Cleanup
- Factorize code for parsing date elements.
- Better order of blocks for parsing date elements.
- Add corresponding minimal-digit date parsing method for reading seconds,
  minutes and week.
- Update documentation and test.
2012-08-02 00:11:12 -04:00
Louis-Claude Canon
384be4b249 Code Cleanup
- Remove the code related to the format "day of year" (number of day starting
  from the January 1) as mktime does not allow to specify it with the field
  tm_yday.
- Cleaner check of the date (everything is done by Date::valid).
- Correct hour, minute and second is also checked.
2012-08-02 00:04:07 -04:00
Louis-Claude Canon
b5cd5ea188 Enhancement
- Allows relative dates such as "1st" to be entered with capital ("1ST").
2012-08-01 23:59:55 -04:00
Louis-Claude Canon
ee0a16f663 Enhancement
- Undefined variables are put to today in dates (if year and month is not
  specified, the current ones are considered). But if a global ones is
  specified, lower one are put to their default values (0 or 1).
2012-08-01 23:41:28 -04:00
Paul Beckingham
d623a6f9af Bug #1048
- Fixed bug #1048, which segfaulted rather than complain about syntax (thanks
  to Bryce Harrington, Štěpán Henek).
2012-08-01 23:37:25 -04:00
Federico Hernandez
90108e5394 README file
- added disclaimer about the risk with using a dev branch.
2012-07-30 23:34:38 +02:00
Johannes Schlatow
affda052c8 Zsh tab completion
Added missing attributes and operators.
2012-07-30 11:55:42 +02:00
Owen Clarke
31769a1fa4 Portability
- Changed the interpreter of the test files to use /usr/bin/env to find
  perl in the user's path instead of hard-coding /usr/bin/perl
2012-07-30 18:49:50 +10:00
Johannes Schlatow
5db7b6c290 Bug #1045
- Fixed bug where zsh completion did not work for aliases (see #1043).
2012-07-29 14:09:56 +02:00
Paul Beckingham
ff1cc85d38 Unit Tests
- Fixed a regex length in a test.
2012-07-28 20:45:49 -04:00
Scott Kostyshak
7b04ae43a0 Unit tests
- Added bug.1043.t which makes sure that aliases are listed by '_aliases'
  and not by '_commands' or '_zshcommands'.
2012-07-28 20:32:58 -04:00
Federico Hernandez
58a87b5ed0 Unit tests
- basic.t now looking correctly for version number in cmake file.
  (thanks to Owen Clarke)
2012-07-29 00:06:01 +02:00
Scott Kostyshak
4f76e0ed7c Bug #1043
- Fixed bug where bash autocompletion did not work for aliases.
- Added new '_aliases' helper command.
2012-07-28 15:36:17 -04:00
Paul Beckingham
275132c1fa Enhancement
- The 'diagnostics' command now reports libuuid details.
2012-07-28 09:19:05 -04:00
Louis-Claude Canon
0ac6578899 Enhancement
- When formating real numbers that are between 0 and 1, the width controls the
  number of characters that are shown (with width "4", "0.01234" is shown as
  "0.01").
2012-07-27 08:19:21 -04:00
Louis-Claude Canon
afcbaa20a9 Code Cleanup
- The symbols '@' is part of the tag and not a special delimiter (adding a new
  item makes it more explicit).
2012-07-27 08:18:01 -04:00
Louis-Claude Canon
0a3de2b867 Unit test
- Check that quitting when doing bulk changes ignores subsequent tasks.
2012-07-27 08:17:12 -04:00
Louis-Claude Canon
0857b451d6 Bug #1044
- 'task projects' discard now newly deleted tasks and it includes only filtered
  tasks for its summary.
2012-07-27 08:13:37 -04:00
Louis-Claude Canon
154d99385a Code Cleanup
- Indentation.
2012-07-27 08:09:26 -04:00