39 Commits

Author SHA1 Message Date
Łukasz Langa
539c277bd8 Open file in binary mode for SHA1 computation
Fixes #13.
2015-11-02 16:23:18 -08:00
Łukasz Langa
0f4ebfa4fa Fix a RST typo. 2015-06-22 18:10:49 -07:00
Łukasz Langa
13b0067ac8 [0.7.0] Multiple bug fixes and refactors 0.7.0 2015-06-22 18:08:26 -07:00
Łukasz Langa
08c6d436bf Merge pull request #7 from msloth/hotfix-missing-dbase-at-test
catch missing database file when running 'test' instead of crashing
2014-12-30 16:37:33 -08:00
Łukasz Langa
a319333fdb Merge pull request #8 from ganwell/master
Fixed possible unique constraint exception
2014-10-03 00:22:24 -07:00
Jean-Louis Fuchs
4d1ca47777 Fixed possible unique constraint exception
When renaming a file its hash can't be used in the WHERE
condition in the UPDATE statement since there _can_ be more
than one file having the same hash and not all of them are
renamed just the one not existing anymore. So we need to use
the old path (now non-existent) to specify the record to
update.

To make the code more clear I also added setting the hash
explicitly in the UPDATE statement.
2014-09-10 15:48:33 +02:00
Marcus Linderoth
a6e1bb9b4c catch missing database file when running 'test' instead of crashing 2014-08-10 18:03:28 +02:00
Łukasz Langa
e5f737b09d PEP 8 0.6.0 2013-11-11 00:43:22 -08:00
Łukasz Langa
1b8a582e34 Add --follow-links, skip files with ENOACCES et al. 2013-11-11 00:38:05 -08:00
Łukasz Langa
1f94944f87 commit at exit, in case of interrupted execution 2013-10-27 06:49:55 +01:00
Łukasz Langa
9521bdea00 minor formatting fixes, bumped to 0.6.0 2013-10-27 06:45:25 +01:00
Łukasz Langa
a8faff93e1 Merge branch 'periodic-commits' of git://github.com/yang/bitrot into yang-periodic-commits
Conflicts:
	src/bitrot.py
2013-10-19 22:17:17 +02:00
Łukasz Langa
dbdf7cf99b Merge branch 'master' of github.com:ambv/bitrot
Conflicts:
	src/bitrot.py
2013-10-19 22:15:51 +02:00
Łukasz Langa
f0e2d61fc3 Merge pull request #2 from yang/ignore-broken-symlinks
Ignore broken symlinks/files that disappear
2013-10-19 13:00:04 -07:00
Łukasz Langa
2cf550d6a3 Merge pull request #1 from yang/div-by-zero
Fix division-by-zero bug
2013-10-19 12:58:01 -07:00
Yang Zhang
af81b67d58 Use proper defined constant ENOENT 2013-10-17 11:42:23 -07:00
Yang Zhang
11e94f663c Clean up throttling and sha1 from feedback 2013-10-17 11:40:01 -07:00
Łukasz Langa
24f76c0678 Merge pull request #3 from yang/index-hash
Create index on hash
2013-10-17 10:12:48 -07:00
Yang Zhang
b6faaf94fa Make chunk size configurable 2013-08-29 15:51:06 -07:00
Yang Zhang
fc46cb7c53 Add optional commit throttling 2013-08-29 15:39:33 -07:00
Yang Zhang
0afdaddd0a Create index on hash 2013-08-26 19:08:57 -07:00
Yang Zhang
a9b57b5814 Remove dangling pdb usage 2013-08-23 14:05:24 -07:00
Yang Zhang
37104d7b78 Clean up division by zero fix 2013-08-23 14:04:09 -07:00
Yang Zhang
3b3770d46a Ignore broken symlinks/files that disappear 2013-08-18 20:16:36 -07:00
Yang Zhang
f2c37cae26 Fix division-by-zero bug 2013-08-18 20:09:14 -07:00
Łukasz Langa
1db45dbd7a use lstat() instead of stat() to properly handle symbolic links 2013-03-27 17:19:38 +01:00
Łukasz Langa
970aad33df 0.5.1: minor bugfix in test mode reporting 0.5.1 2013-03-15 23:32:14 +01:00
Łukasz Langa
26a6d62b02 0.5.0: test mode introduced 0.5.0 2013-03-15 17:12:04 +01:00
Łukasz Langa
a46acd36c4 readme updated 2013-03-04 09:37:09 +01:00
Łukasz Langa
6035421d39 performance and usability updates
- report the size of the data read
- only update the counter when it changes
- consistent quotation marks
2013-03-04 01:41:45 +01:00
Łukasz Langa
ebcf6a5926 0.4.0: rename support, progress as percentage, skipping symlinks 0.4.0 2013-03-04 00:49:42 +01:00
Łukasz Langa
0201bcd853 0.3.0: --sum command-line argument 0.3.0 2013-02-26 15:44:51 +01:00
Łukasz Langa
ddbe88eee4 release 0.2.1 0.2.1 2013-02-12 09:57:58 +01:00
Łukasz Langa
6904612d97 use discard instead of removein the missing_paths set 2013-02-12 09:56:19 +01:00
Łukasz Langa
de52daceaa 0.2.0: --verbose and --quiet command-line args, removing missing entries 0.2.0 2013-02-10 19:16:10 +01:00
Łukasz Langa
6d56beaacc version based on SQLite 3 0.1.0 2013-01-17 16:01:56 +01:00
Łukasz Langa
b244bdd4d9 first usable version backed by DBM 2013-01-17 15:01:22 +01:00
Łukasz Langa
7a3545b55a readme updated 2013-01-16 11:28:25 +01:00
Łukasz Langa
a506c20996 Initial commit 2013-01-16 02:25:46 -08:00