Winston Li
|
83db4e6a10
|
Joda-Time for ISO6801 timestamps.
|
2015-03-09 21:38:53 +00:00 |
|
Winston Li
|
e7c1b29008
|
Change timestamp parsing to include milliseconds.
|
2015-03-09 21:29:03 +00:00 |
|
Winston Li
|
e6bdbe8f17
|
Fix the rest of the tests
|
2015-03-05 15:39:05 +00:00 |
|
Winston Li
|
5df8b2b65f
|
Change 2 tests to launch git in separate process.
|
2015-03-05 15:21:28 +00:00 |
|
Winston Li
|
3d53226853
|
Use shared instance of AsyncHttpClient and close Stream in ResourceFetcher.
|
2015-02-24 10:30:39 +00:00 |
|
Winston Li
|
77c4576b59
|
Fix SQL injection.
|
2015-02-23 11:00:34 +00:00 |
|
Winston Li
|
4561409450
|
Fix url index bug with renaming.
|
2015-02-22 10:56:47 +00:00 |
|
Winston Li
|
ad7c7a4ba5
|
Fix bug with Overleaf commits swapping name and email.
|
2015-02-22 10:41:21 +00:00 |
|
Winston Li
|
6e5163c186
|
Fix project atts directory deletion to delete base directory too.
|
2015-02-22 10:20:30 +00:00 |
|
Winston Li
|
ec0c70c622
|
Delete project atts directory after push.
|
2015-02-22 10:09:35 +00:00 |
|
Winston Li
|
59001735b1
|
Remove loading messages.
|
2015-02-22 02:59:50 +00:00 |
|
Winston Li
|
52f2190346
|
Fix ResourceFetcher log message.
|
2015-02-22 02:35:03 +00:00 |
|
Winston Li
|
b01ec908e1
|
Delete url indexes on successful push.
|
2015-02-22 02:35:03 +00:00 |
|
Winston Li
|
70d9c0e31d
|
Fix url index lookups for same commit and add log messages.
|
2015-02-22 02:35:03 +00:00 |
|
Winston Li
|
be806d293c
|
Delete un-needed files from mem builds.
|
2015-02-22 02:35:03 +00:00 |
|
Winston Li
|
0c0da41bb9
|
Fix equals bug in ServletFile diff.
|
2015-02-22 02:35:03 +00:00 |
|
Winston Li
|
4a396c2c17
|
Set latest seen version after non empty snapshot fetch.
|
2015-02-22 02:35:02 +00:00 |
|
Winston Li
|
680c7fabf7
|
Add stack trace prints and remove bugged git config.
|
2015-02-22 02:35:02 +00:00 |
|
Winston Li
|
a91390dd37
|
Add IF NOT EXISTS to index creation sql statement.
|
2015-02-22 02:35:02 +00:00 |
|
Winston Li
|
fee792f5ee
|
In-place diffs during push snapshot creation.
|
2015-02-22 02:35:02 +00:00 |
|
Winston Li
|
ec13e184b7
|
Implement no_mem git-uploads.
|
2015-02-22 02:35:02 +00:00 |
|
Winston Li
|
4110dcc2a9
|
Redesigned SQL interface.
|
2015-02-22 02:35:02 +00:00 |
|
Winston Li
|
30521b988b
|
Graceful kill with write lock and per project read locks.
|
2015-02-21 00:52:20 +00:00 |
|
Winston Li
|
ac50c26aef
|
(fix #8) Add better error message for 403 protected projects with integration test and support.
|
2015-02-20 12:42:04 +00:00 |
|
Winston Li
|
682a7e93ad
|
Added stack trace print.
|
2015-01-15 23:03:12 +00:00 |
|
Winston Li
|
70808b14b5
|
Added try-catch-finally block for remaining instances of lock releasing.
|
2015-01-15 23:00:32 +00:00 |
|
Winston Li
|
4eda2a81ba
|
Restored broken images and removed print statements.
|
2015-01-11 17:36:51 +00:00 |
|
Winston Li
|
e124a74c2f
|
Fixed bug with git not adding deleted files.
|
2015-01-11 17:23:49 +00:00 |
|
Winston Li
|
d4613864c0
|
Changed a string containing writelatex.
|
2015-01-11 16:24:42 +00:00 |
|
Winston Li
|
cd7877e02e
|
Added the rest of the test.
|
2015-01-11 16:01:56 +00:00 |
|
Winston Li
|
a276b7c806
|
Added integration test for pulling a modified tex file.
|
2015-01-11 15:54:36 +00:00 |
|
Winston Li
|
e8120a98dd
|
Fixed a test repo.
|
2015-01-11 15:27:44 +00:00 |
|
Winston Li
|
984969b155
|
Added canCloneMultipleRepositories integration test.
|
2015-01-11 15:21:11 +00:00 |
|
Winston Li
|
3a63d9c225
|
Added actual img
|
2015-01-11 14:16:53 +00:00 |
|
Winston Li
|
dd6c38dd5b
|
Changed the name of the directory from git to repo.
|
2015-01-11 12:38:17 +00:00 |
|
Winston Li
|
a9c8deca7f
|
Fixed generated wlgb file root.
|
2015-01-11 12:19:01 +00:00 |
|
Winston Li
|
517792517c
|
Stopped using getResource.
|
2015-01-11 12:13:25 +00:00 |
|
Winston Li
|
0dd12e5323
|
Renamed class.
|
2015-01-11 12:01:53 +00:00 |
|
Winston Li
|
d8a8493a82
|
Moved directory.
|
2015-01-11 12:00:11 +00:00 |
|
Winston Li
|
8dc7f17e46
|
Added versions.
|
2015-01-11 11:55:19 +00:00 |
|
Winston Li
|
f09ed593d7
|
Removed print statements.
|
2015-01-11 11:29:19 +00:00 |
|
Winston Li
|
3f67e62846
|
First integration test.
|
2015-01-11 11:23:33 +00:00 |
|
Winston Li
|
3a532a76df
|
Added integration test directory and wrote FileUtil and tests.
|
2015-01-11 09:11:12 +00:00 |
|
Winston Li
|
0e6f554e42
|
Added opposite arrows for inbound http requests.
|
2015-01-10 11:32:33 +00:00 |
|
Winston Li
|
ca936d6630
|
Added better logging with timestamps and removed verbose http responses.
|
2015-01-10 11:28:25 +00:00 |
|
Winston Li
|
ae3808e5ad
|
Changed response message slightly.
|
2015-01-10 09:12:58 +00:00 |
|
Winston Li
|
0ce8cc074e
|
Reduced amount of logging of outgoing http requests.
|
2015-01-10 08:59:04 +00:00 |
|
Winston Li
|
26e2b1262d
|
Implemented mock snapshot server.
|
2015-01-10 08:41:14 +00:00 |
|
Winston Li
|
27e0952afb
|
Converted build tool to Maven.
|
2015-01-09 07:21:13 +00:00 |
|
Winston Li
|
ece573c942
|
Implemented bare repos. (resolved #5)
|
2015-01-06 20:36:56 +00:00 |
|
Winston Li
|
553a1064a5
|
Changed postbackUrl to postbackBaseUrl in config.
|
2015-01-06 20:13:05 +00:00 |
|
Winston Li
|
fec30532a2
|
Replaced hostname and ssl config with postbackUrl. (fixed #2, fixed #3)
|
2015-01-06 20:08:00 +00:00 |
|
Winston Li
|
16d7373800
|
Added ssl enabled option for postback url construction (#4, #2) and removed api key setting (#3).
|
2015-01-05 02:18:43 +00:00 |
|
Winston Li
|
995f862669
|
Allowed postback root to be specified as a config setting (#2)
|
2015-01-05 00:39:08 +00:00 |
|
Winston Li
|
128e24d2fb
|
Added checking for the master branch.
|
2014-12-19 14:40:25 +00:00 |
|
Winston Li
|
f8c311688d
|
Changed hostname to apiBaseUrl.
|
2014-12-06 01:27:08 +00:00 |
|
Winston Li
|
cfe23b57ff
|
Forced hostname to end with /
|
2014-12-06 00:48:39 +00:00 |
|
Winston Li
|
f39199fa7e
|
Made username and password optional and added serviceName member to config file.
|
2014-12-06 00:45:18 +00:00 |
|
Winston Li
|
8b700a8c0c
|
Added configurable hostname and basic auth in config file.
|
2014-12-06 00:23:30 +00:00 |
|
Winston Li
|
c39e93c152
|
Changed program arguments to only take config file.
|
2014-12-05 23:46:37 +00:00 |
|
Winston Li
|
50f01e1cf5
|
Setting time properly.
|
2014-12-05 00:39:48 +00:00 |
|
Winston Li
|
682f8a290c
|
Getting new createdAt info.
|
2014-12-05 00:26:10 +00:00 |
|
Winston Li
|
044f67ea49
|
Saving pushed version ID to db.
|
2014-12-04 23:58:44 +00:00 |
|
Winston Li
|
0ac263ad45
|
Checking postback key.
|
2014-12-04 23:39:43 +00:00 |
|
Winston Li
|
e31b4fead5
|
Decoding postback GETs.
|
2014-12-04 23:34:02 +00:00 |
|
Winston Li
|
28e0d8cd42
|
Added postback key to files.
|
2014-12-04 23:18:32 +00:00 |
|
Winston Li
|
df751500c5
|
Added /postback on the end of postbackUrl.
|
2014-12-04 23:13:44 +00:00 |
|
Winston Li
|
4dc093fcee
|
Made a better postback key.
|
2014-12-04 21:38:41 +00:00 |
|
Winston Li
|
1561111a0b
|
Fixed handler end of postback key.
|
2014-12-04 21:30:25 +00:00 |
|
Winston Li
|
c3ef49b17c
|
Basic implementation of postback key.
|
2014-12-04 21:27:52 +00:00 |
|
Winston Li
|
3887e5025f
|
Added unit test classes.
|
2014-12-04 21:08:53 +00:00 |
|
Winston Li
|
3d19cb95b9
|
Removed print and gave more descriptive error.
|
2014-12-04 20:38:12 +00:00 |
|
Winston Li
|
ce9351186c
|
Initialised descriptionLines.
|
2014-12-04 20:35:10 +00:00 |
|
Winston Li
|
e57f081c80
|
Printing in exception.
|
2014-12-04 20:26:29 +00:00 |
|
Winston Li
|
49028bd27b
|
Implented more descriptive InvalidFilesException.
|
2014-12-04 20:24:13 +00:00 |
|
Winston Li
|
3ff9dc6b26
|
Printed invalid files error.
|
2014-12-04 20:11:05 +00:00 |
|
Winston Li
|
0daecf3f72
|
Changed request print.
|
2014-12-04 20:05:07 +00:00 |
|
Winston Li
|
e3ff612813
|
Printing postback contents.
|
2014-12-04 20:00:20 +00:00 |
|
Winston Li
|
d070baabde
|
Fixed merge conflict.
|
2014-12-04 19:53:19 +00:00 |
|
Winston Li
|
ee6273ff8c
|
Added print.
|
2014-12-04 19:49:51 +00:00 |
|
Winston Li
|
6fc953b008
|
Added print.
|
2014-12-04 19:49:51 +00:00 |
|
Winston Li
|
1f12677e76
|
Added print.
|
2014-12-04 19:49:51 +00:00 |
|
Winston Li
|
01f59e3f4e
|
Fixed cast.
|
2014-12-04 19:49:50 +00:00 |
|
Winston Li
|
4ec7d70eff
|
Changed equality testing for FileNode.
|
2014-12-04 19:49:50 +00:00 |
|
Winston Li
|
e52ef90e13
|
Made changed be calculated dynamically.
|
2014-12-04 19:49:50 +00:00 |
|
Winston Li
|
cc77fdd89f
|
Print statement
|
2014-12-04 19:49:50 +00:00 |
|
Winston Li
|
358abb4503
|
Initialising blobs in candidate snapshots.
|
2014-12-04 19:49:50 +00:00 |
|
Winston Li
|
794a0e29e6
|
Added fix for testing equality of ByteBlobs
|
2014-12-04 19:49:50 +00:00 |
|
Winston Li
|
1f239d7118
|
Creating directories.
|
2014-12-04 19:49:50 +00:00 |
|
Winston Li
|
f72767ceb1
|
Added print
|
2014-12-04 19:49:50 +00:00 |
|
Winston Li
|
1db7670f05
|
Added loading of AttachmentNode blobs.
|
2014-12-04 19:49:50 +00:00 |
|
Winston Li
|
f429c4bf8b
|
Added print statement.
|
2014-12-04 19:49:07 +00:00 |
|
Winston Li
|
8483e0b86a
|
Accounting for trailing slashes and .git in project name.
|
2014-11-20 11:37:32 +00:00 |
|
Winston Li
|
a654529090
|
Removed print statements.
|
2014-11-20 11:25:00 +00:00 |
|
Winston Li
|
c42db9eb8b
|
Throwing RepositoryNotFoundException when not found.
|
2014-11-20 11:23:31 +00:00 |
|
Winston Li
|
2c64fb0e4f
|
Fixed deadlock on exception being thrown.
|
2014-11-20 10:54:16 +00:00 |
|
Winston Li
|
b847e6f712
|
Fixed accidental package move.
|
2014-11-20 10:33:39 +00:00 |
|
Winston Li
|
b5adf31774
|
Added per-project synchronisation and massively refactored SQLiteWLDatabase.
|
2014-11-20 10:27:58 +00:00 |
|
Winston Li
|
08277baa77
|
Added per-project synchronisation.
|
2014-11-20 09:19:21 +00:00 |
|
Winston Li
|
b51b37f71f
|
Creating atts directory when needed.
|
2014-11-19 21:31:01 +00:00 |
|
Winston Li
|
0442cd7e0b
|
Creating .wlgb directory if it isn't there.
|
2014-11-19 21:07:55 +00:00 |
|
Winston Li
|
832009e6cf
|
Finished writing persistent store.
|
2014-11-19 20:57:31 +00:00 |
|
Winston Li
|
dc47c17264
|
Loading fetched versions from database.
|
2014-11-19 19:30:59 +00:00 |
|
Winston Li
|
f103c7e3b5
|
Loading WLProjectStore from database.
|
2014-11-19 19:01:18 +00:00 |
|
Winston Li
|
7d47514810
|
Changed WLDataModel to not delete project directories.
|
2014-11-19 18:40:34 +00:00 |
|
Winston Li
|
071e0a87cc
|
Wrote persistent store.
|
2014-11-19 18:28:55 +00:00 |
|
Winston Li
|
dca42ac72b
|
Initial sqlite database creation code.
|
2014-11-19 13:49:30 +00:00 |
|
Winston Li
|
50023ba265
|
Loading project and file store from database.
|
2014-11-17 13:59:11 +00:00 |
|
Winston Li
|
1d4f856832
|
Moved projects table into WLProjectStore class.
|
2014-11-17 13:54:37 +00:00 |
|
Winston Li
|
5d1c9d436a
|
Basic sqlite database being loaded.
|
2014-11-17 13:49:19 +00:00 |
|
Winston Li
|
2a02ed466a
|
Added sqlite-jbdc-3.7.2.jar and javadocs to ant build.
|
2014-11-17 13:29:26 +00:00 |
|
Winston Li
|
eb8dccc151
|
Made deleteInDirectory use deleteInDirectoryApartFrom.
|
2014-11-17 13:09:27 +00:00 |
|
Winston Li
|
555f4e1674
|
Changed deleteInDirectoryApartFrom to take variadic type.
|
2014-11-17 13:08:29 +00:00 |
|
Winston Li
|
3bbef6f066
|
Now deleting all files before writing snapshot to disk.
|
2014-11-17 12:47:59 +00:00 |
|
Winston Li
|
1e8d7d5840
|
Removed printing of push data.
|
2014-11-17 12:31:51 +00:00 |
|
Winston Li
|
3dea6036f8
|
Added more description exception messages.
|
2014-11-17 10:59:47 +00:00 |
|
Winston Li
|
bdb34f89e7
|
Catching everything else in the put hook.
|
2014-11-17 10:48:53 +00:00 |
|
Winston Li
|
da5b661858
|
Added exception if the push request returned instantly with an error.
|
2014-11-17 10:41:36 +00:00 |
|
Winston Li
|
c9d773b6e8
|
Made constructor for pushed snapshot.
|
2014-11-17 10:13:01 +00:00 |
|
Winston Li
|
7d650a8604
|
Removed unused variable.
|
2014-11-17 10:08:56 +00:00 |
|
Winston Li
|
3d86a3e149
|
Added exception handling to postback and implemented waiting properly.
|
2014-11-17 10:00:15 +00:00 |
|
Winston Li
|
3e12845345
|
Used cond instead.
|
2014-11-16 22:08:45 +00:00 |
|
Winston Li
|
38cf9e33c6
|
Added timeout to wait.
|
2014-11-16 22:04:18 +00:00 |
|
Winston Li
|
ccf17f9867
|
Extracted project name properly from uri.
|
2014-11-16 21:58:36 +00:00 |
|
Winston Li
|
48305d963f
|
Testing candidate snapshot approval.
|
2014-11-16 21:49:16 +00:00 |
|
Winston Li
|
06a7ee6614
|
Corrected remoteAddr to localName.
|
2014-11-16 21:00:57 +00:00 |
|
Winston Li
|
db2bf43aa7
|
Checking local IP of request.
|
2014-11-16 20:55:44 +00:00 |
|
Winston Li
|
87bd7e6ff4
|
Setting Content-Type and sending request for SnapshotPushRequest.
|
2014-11-16 20:43:33 +00:00 |
|
Winston Li
|
375916678d
|
Generating SnapshotPostRequest data correctly.
|
2014-11-16 20:27:37 +00:00 |
|
Winston Li
|
20c48cbd92
|
Made changed files accessible via http.
|
2014-11-16 20:02:30 +00:00 |
|
Winston Li
|
30675a11d4
|
Successfully creating changed and new files.
|
2014-11-16 19:59:18 +00:00 |
|
Winston Li
|
05d222ab00
|
Added POST support to Request class.
|
2014-11-16 18:56:00 +00:00 |
|
Winston Li
|
f96a29bc45
|
Implemented WriteLatexDataSource with WriteLatexAPI instead of WLDataModel.
|
2014-11-16 18:05:44 +00:00 |
|
Winston Li
|
abc698085a
|
Added handlers for resources and SnapshotPushPostback.
|
2014-11-16 17:58:18 +00:00 |
|
Winston Li
|
74ac6e2379
|
Added push exceptions and deleting root git directory on program start.
|
2014-11-16 15:40:12 +00:00 |
|
Winston Li
|
3cd94af7e9
|
Made RepositoryObjectTreeWalker and associated classes and methods.
|
2014-11-16 12:43:21 +00:00 |
|
Winston Li
|
ba7d0d318c
|
Iterating over received parent commits.
|
2014-11-15 17:37:11 +00:00 |
|
Winston Li
|
6d4309267e
|
Fixed directory problem in file store and wrote working code for reading new revs.
|
2014-11-15 17:10:46 +00:00 |
|
Winston Li
|
abc8854f59
|
Memory store works except the project name still needs to be passed to writeToFile.
|
2014-11-14 21:32:37 +00:00 |
|
Winston Li
|
95a17beef4
|
Worked on file store.
|
2014-11-14 14:40:05 +00:00 |
|
Winston Li
|
33f59c3f65
|
DirectoryNode being created for latest snapshot.
|
2014-11-12 17:41:49 +00:00 |
|
Winston Li
|
f3a24603d9
|
Fixed test name and added to file store.
|
2014-11-12 12:20:43 +00:00 |
|
Winston Li
|
ae5a55747e
|
Refactored test package names and added FileIndexStore and BlobHash classes.
|
2014-11-12 11:54:09 +00:00 |
|
Winston Li
|
5686590a36
|
Began work on memory file store.
|
2014-11-08 19:01:47 +00:00 |
|
Winston Li
|
b5513618d0
|
Refactored so that the correct exceptions are thrown, especially when there is an git repo.
|
2014-11-08 12:54:06 +00:00 |
|
Winston Li
|
f245e583b4
|
Cleaned up WLDataModel.java.
|
2014-11-08 12:08:06 +00:00 |
|
Winston Li
|
ea34136fe7
|
Refactoring.
|
2014-11-07 20:41:05 +00:00 |
|
Winston Li
|
0d7f5e4430
|
Now saves the versions already held.
|
2014-11-07 18:54:24 +00:00 |
|
Winston Li
|
f43fd39fc7
|
Basic version of clone working.
|
2014-11-07 13:18:07 +00:00 |
|
Winston Li
|
0f4e99361f
|
Added data structures for SnapshotGetForVersionRequest.
|
2014-11-07 12:08:28 +00:00 |
|
Winston Li
|
28013f586c
|
Big refactoring, implemented SnapshotGetSavedVersRequest.
|
2014-11-06 14:52:13 +00:00 |
|
Winston Li
|
e8bf062a46
|
Optimised imports.
|
2014-11-06 12:38:12 +00:00 |
|
Winston Li
|
acd2a52b86
|
Now fetching missing version IDs.
|
2014-11-06 12:30:45 +00:00 |
|
Winston Li
|
d59c3da400
|
Included slf4j jars and implemented Snapshot Fetch API.
|
2014-11-06 11:43:11 +00:00 |
|
Winston Li
|
6af8a43ffe
|
Added async-http-client to project and ant build.
|
2014-11-06 10:18:41 +00:00 |
|
Winston Li
|
0234894897
|
Added gson-2.3 jar to project and ant build.
|
2014-11-06 09:53:33 +00:00 |
|
Winston Li
|
0a793dccc8
|
Creating repositories dynamically.
|
2014-11-05 18:18:43 +00:00 |
|
Winston Li
|
d9a164d673
|
Moved classes around in packages.
|
2014-11-05 17:31:14 +00:00 |
|
Winston Li
|
27c5dc1364
|
Renamed SnapshotRepositorySource to SnapshotRepositoryBuilder and created WLBridgedProject to replace the old SnapshotRepositoryBuilder.
|
2014-11-05 16:41:41 +00:00 |
|
Winston Li
|
f2c987c658
|
Made test classes and made BridgedProject class.
|
2014-11-05 15:46:40 +00:00 |
|
Winston Li
|
8785256229
|
Wrote some Snapshot code.
|
2014-11-03 18:01:59 +00:00 |
|
Winston Li
|
ac55180ba2
|
Refactoring and added unit test.
|
2014-11-03 17:29:12 +00:00 |
|
Winston Li
|
377ecea693
|
Made bridge package.
|
2014-11-03 17:20:15 +00:00 |
|
Winston Li
|
21ec6dd28d
|
Abstracted snapshot work into interface.
|
2014-11-03 17:19:17 +00:00 |
|
Winston Li
|
8879cb46db
|
Refactoring.
|
2014-11-03 17:05:21 +00:00 |
|
Winston Li
|
65b4e3d773
|
Server now allows clone/pull from existing repositories and rejects all pushes.
|
2014-11-03 15:05:35 +00:00 |
|
Winston Li
|
7283f1893b
|
Added comments to WLGitBridgeApplication.
|
2014-11-03 14:23:21 +00:00 |
|
Winston Li
|
3e16106f2d
|
Handles program arguments and prints usage.
|
2014-11-03 14:20:12 +00:00 |
|
Winston Li
|
dcf8a16d64
|
Changed readme.
|
2014-11-03 13:19:49 +00:00 |
|
Winston Li
|
70b9072ab6
|
Added packaging and clean targets to ant.
|
2014-11-03 12:59:51 +00:00 |
|
Winston Li
|
f385afed0c
|
Dummy change.
|
2014-11-03 09:33:52 +00:00 |
|
Winston Li
|
6f5b316c52
|
Rejecting all pushes.
|
2014-11-03 09:31:06 +00:00 |
|
Winston Li
|
4f1c28e8c2
|
Refactored package names.
|
2014-11-02 18:47:54 +00:00 |
|
Winston Li
|
2d8580f02b
|
Class and package refactoring with unit tests.
|
2014-11-02 18:41:18 +00:00 |
|
Winston Li
|
c2fea2ee06
|
Created classes.
|
2014-11-02 17:26:55 +00:00 |
|
Winston Li
|
c075a62e95
|
Marked test directory as test sources root.
|
2014-11-02 17:20:54 +00:00 |
|
Winston Li
|
535c54b5a5
|
Initial test server.
|
2014-11-02 17:15:31 +00:00 |
|
Winston Li
|
d1ef703af0
|
Added jgit.http.server javadocs.
|
2014-11-01 19:37:18 +00:00 |
|
Winston Li
|
2df4f1b0e0
|
Added JGit library and its JavaDocs.
|
2014-11-01 16:42:00 +00:00 |
|
Winston Li
|
7039dc36e3
|
Added initial ant build files.
|
2014-11-01 16:21:10 +00:00 |
|
Winston Li
|
c63c32c5e3
|
Idea project.
|
2014-11-01 16:11:26 +00:00 |
|