Commit graph

77 commits

Author SHA1 Message Date
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
14feaa9fcb Deleted workspace.xml from git cache. 2014-11-06 14:54:51 +00:00
Winston Li
eaddc7bce5 Changed .gitignore to ignore .idea/workspace.xml. 2014-11-06 14:53:43 +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