Commit graph

2922 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
68c1ca3f69 Bug #1104
Fixed the bug where the sort order of transactions with equal timestamps
 was not stable, i.e. due to the lack of a total order, different merges
 produced different sortings and hence messed up transactions which
 have already been merged.
2012-09-10 22:53:44 +02:00
Johannes Schlatow
98da8ddcb8 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 20:33:32 +02: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
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
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
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
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
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
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
Owen Clarke
c20ce334f9 Merge branch '2.2.0' of tasktools.org:task into 2.2.0 2012-07-26 22:11:05 +10:00
Owen Clarke
276971675a Bug #1042
- Fixed a bug where the diagnostics command failed to detect missing
  external utilities on Solaris and NetBSD.
2012-07-26 22:08:34 +10:00
Louis-Claude Canon
160260ff48 Code Cleanup
- Remove duplicate modify call to TDB2.
- Check if quitting in bulk change only if permission fails.
- Correct test logic (the unit for each operation is the second, not the day).
- Consistency in test for feature.1013.t
- Correctly color deleted tasks.

test
2012-07-26 08:06:15 -04:00
Paul Beckingham
39456a3243 Performance
- Moved an expensive operation inside an if statement.
2012-07-25 23:14:15 -04:00
Paul Beckingham
d89d51e7e1 Deprecation
- Removed deprecated 'fg:' and 'bg:' attributes, which involves code,
  documentation and tests.
- Cleaned out NEWS file.
- Cleaned out config import synonyms, which should have been deleted a while
  ago.
- Removed unused localized strings, but left the 'deprecated' one behind,
  because it will be needed.
2012-07-25 22:44:25 -04:00
Louis-Claude Canon
1d99260cb9 Enhancement
- Stop consider new tasks after quitting a bulk change.
2012-07-25 08:06:18 -04:00
Louis-Claude Canon
e5d142a468 Bug #1038
- Cleaner solution (less code duplication and blank space only when a
  confirmation is needed) for bug #1038.
2012-07-25 08:06:15 -04:00
Louis-Claude Canon
60e7260920 Code Cleanup
- Print a message in bulk change when the user choose not to denotate a
  specific task (more consistent behaviour with other bulk changes).
2012-07-24 20:51:15 -04:00
Louis-Claude Canon
406f098263 Bug #1038
- Fixed bug #1038, which prints blank lines with bulk changes and when the
  verbose attributes does not specify it.
- Lines do a better separation between each changes also.
2012-07-24 20:51:03 -04:00
Louis-Claude Canon
c71146611c Bug #1036
- Remove the test that prevents 'until' attributes to be modified for
  non-recurring tasks (thanks to Stéphane Pezennec).
- Unit test.

Signed-off-by: Paul Beckingham <paul@beckingham.net>
2012-07-24 16:55:59 -04:00
Paul Beckingham
28e66a28aa Bug
- Fixed bug that caused miplaced commas in JSON export (thanks to greenskeleton).
2012-07-23 23:31:45 -04:00
Owen Clarke
16bef4a29e Bug
- Fixed platform detection of OpenBSD and NetBSD
2012-07-22 20:15:11 +10:00
Paul Beckingham
a469a2c6d5 Feature #1033
- Feature #1033 allows UDAs to contribute to urgency (thanks to Max Muller).
2012-07-18 23:33:30 -04:00
Paul Beckingham
6a2c047beb Bug #1032
- Fixed bug #1032, which prevented negative urgency coefficients from working
  for projects and tags.
2012-07-18 06:53:58 -04:00
Paul Beckingham
c20c025c8e Bug
- Fixed a bug that caused a commond dateformat (YDM-HN) to be misinterpreted
  as a UUID.  Solution is to increase minimum partial UUID length from 9 to
  14.
2012-07-17 18:30:58 -04:00
Paul Beckingham
561102b70b Build Broken
- Forgot to include the updated strings.
2012-07-16 23:02:37 -04:00
Paul Beckingham
051274b960 Bug
- Fixed bug that caused a segfault when an invalid sort column was specified
  (thanks to Uli Martens).
2012-07-16 17:04:25 -04:00
Owen Clarke
0022cfe10b Bug
- Include limits.h in Directory.cpp to fix compilation on Solaris 11
2012-07-17 00:53:39 +10:00
Owen Clarke
92adb5e266 Bug
- Added include util.h in Nibbler.cpp, forgot to add it to make the fix
  for bug #1030 compile on Solaris.
2012-07-16 23:43:12 +10:00
Owen Clarke
a655be823b Bug #1030
- Added portable implementation of timegm for non GNU/BSD platforms that
  don't have their own implementation
- Removed the use of tm_gmtoff on non GNU/BSD platforms that don't have
  it as part of the tm struct in time.h
- Added CMake tests HAVE_TIMEGM and HAVE_TM_GMTOFF
2012-07-16 22:45:11 +10:00
Federico Hernandez
72ca3f68ea Missing include statement for Linux gcc
- #include <algorithm>
2012-07-16 09:41:16 +02:00
Paul Beckingham
a3b56feb1f Bug
- On the 'udas' report, the orphans were not counted separately for
  the totals.
2012-07-16 01:21:58 -04:00