Alan Hamlett
fd322ba3b6
improve traceback logging and non-utf8 handling
2016-09-01 11:49:12 +02:00
Alan Hamlett
5d37335b37
one-line if for returning project name
2016-08-31 14:52:05 +02:00
Alan Hamlett
8ef87d0393
test for index error on project map replacement regex groups
2016-08-31 14:49:01 +02:00
Alan Hamlett
5207dc68ee
remove pragma nocover
2016-07-06 17:36:22 +02:00
Alan Hamlett
aaf49a5c22
prevent tracking git branch with detached head
2016-06-01 10:08:00 +02:00
Alan Hamlett
e4fea84b5e
improve test coverage for dependency detection
2016-05-21 14:21:55 +02:00
Alan Hamlett
bb71ff3106
prevent using svn when Mac does not have xcode-tools installed
2016-05-16 16:02:38 +02:00
Alan Hamlett
615fa5cdac
support regex patterns in projectmap config section
2016-04-18 21:34:00 +02:00
Alan Hamlett
9981601a0a
change logging level of traceback messages
2016-02-18 11:48:11 -08:00
Alan Hamlett
ca5bb35bbb
correctly log exception tracebacks
2015-10-22 23:15:57 -07:00
Alan Hamlett
0a56ffa8eb
better svn test coverage
2015-09-26 21:11:21 -07:00
Alan Hamlett
5ee4f41a87
test project base
2015-09-26 19:23:38 -07:00
Alan Hamlett
fdaabdd27e
tests for mercurial project detection
2015-09-07 21:40:01 -07:00
Alan Hamlett
1194bc004e
prevent exception when svn info output not as expected
2015-09-07 21:28:19 -07:00
Alan Hamlett
eff141187b
turn svn output into unicode before parsing
2015-09-07 21:25:21 -07:00
Alan Hamlett
edb1dab9a8
increase test coverage
2015-09-07 20:57:21 -07:00
Alan Hamlett
dc5dcf0cb1
tests for project map config section
2015-09-07 20:43:06 -07:00
Alan Hamlett
43c461a7cc
try opening files with filesystem encoding when opening with utf-8 causes UnicodeDecodeError
2015-08-23 18:49:34 -07:00
Alan Hamlett
e8bd8bba76
correct priority for project detection
...
Priority of project detection:
1. .wakatime-project file
2. [project_map] section in .wakatime.cfg INI file
3. --project arg
3. revision control directory name
5. --alternate-project arg
2015-06-29 19:26:01 -07:00
Alan Hamlett
d3a31fc72d
fix a few bugs and remove unused imports
2015-02-10 12:09:32 -08:00
Alan Hamlett
685ba447b4
fix list index error when detecting subversion project
2014-11-18 15:57:29 -08:00
Alan Hamlett
1e1b001b61
detect branch name from local directory name for subversion projects
2014-11-10 12:25:01 -08:00
Alan Hamlett
0ec8c8edd9
don't open binary file as utf-8
2014-09-30 10:11:44 -07:00
Alan Hamlett
4bad3541d9
new compat file for python2 and python3 compatibility. read files as utf-8.
2014-09-30 09:09:30 -07:00
Alan Hamlett
138be33349
use os.devnull for python2 support
2014-08-29 12:45:52 -07:00
Alan Hamlett
c7989b1eaf
supress output from running svn command
2014-08-29 12:37:54 -07:00
Alan Hamlett
a5572bfc29
find svn binary location from common install directories
2014-08-27 03:25:05 -07:00
Alan Hamlett
e392ff6e77
namespace logger to prevent conflicts with other plugins
2014-07-25 00:59:25 -07:00
Alan Hamlett
7697b54e8e
detect project name and branch from mercurial revision control
2014-02-05 00:55:52 -08:00
Alan Hamlett
eb479efa52
define unicode as str for Python3
2014-01-15 16:41:35 -08:00
Alan Hamlett
275a2a6e57
set system language to English before running subversion program
2014-01-14 05:02:51 -08:00
Alan Hamlett
c3642fade2
second line in .wakatime-project sets branch name
2013-12-13 16:33:09 +01:00
Alan Hamlett
05ced3dbc0
update description with example of using projectmap config section
2013-12-13 15:02:44 +01:00
Alan Hamlett
297ebb902b
updates to project plugins:
...
- force projects to return unicode names and branches, or None
- refactor ProjectMap to set project name from cfg file
- pass configs to find_project() as dict from plugin's cfg section
- clean up git project class
updates to config file:
- rename ~/.wakatime.conf to ~/.wakatime.cfg
- better error handling while parsing and getting configs
- no longer need to set defaults when parsing config file
- use configparser for python3 when python2 import fails
2013-12-13 14:46:39 +01:00
3onyc
b75570a589
Fix ProjectMap always returning true if it has a config section
2013-12-12 10:09:14 +01:00
3onyc
5b9eb937ff
Rename config to settings in BaseProject
2013-12-11 15:13:40 +01:00
3onyc
a4913289ce
Make ProjectMap use config section
2013-12-10 13:46:56 +01:00
3onyc
d6e1da7073
Pass config to plugin, but only if it has a section for the plugin
2013-12-10 13:46:56 +01:00
3onyc
81fe41409a
Implement ProjectMap plugin
2013-12-10 13:46:56 +01:00
Alan Hamlett
b345a1ff7b
set project name with .wakatime-project file
2013-11-13 10:41:56 -08:00
Alan Hamlett
f8b4c91ae6
remove support for subversion on Windows to prevent cmd windows from opening
2013-10-14 21:50:22 -07:00
Alan Hamlett
da3f519dc0
read .git/HEAD file directly to find branch instead of running git command line
2013-10-13 16:31:37 -07:00
Alan Hamlett
1aa88e4bf1
using branch instead of tags
2013-08-15 00:09:27 -07:00
Alan Hamlett
08010e86fe
removed --list option for older git installations. using sys.version_info as tuple for python 2.6 support.
2013-07-30 16:23:12 -07:00
Alan Hamlett
26212df0f7
support for Python3
2013-07-29 23:04:43 -07:00
Alan Hamlett
9f26012ddd
don't assume all git urls are the same
2013-07-22 17:23:55 -07:00
Alan Hamlett
d1fc0ba0db
removing duplicate tags before sending. reduced number of tags for git and svn projects. recursively finding parent svn directory.
2013-07-20 14:42:19 -07:00
Alan Hamlett
7134ac4650
discarding stderr when working with git and subversion command line clients
2013-07-10 01:33:36 -07:00
Alan Hamlett
0af24e0b17
refactored project classes. supporting svn projects. finding more tags for git projects.
2013-07-09 20:11:49 -07:00
Alan Hamlett
9457b85567
version 0.1.1. refactored. simplified action events schema.
2013-07-07 16:28:18 -07:00