summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.iplog
Commit message (Collapse)AuthorAgeFilesLines
* Run formatter on edited lines via save actionChris Aniszczyk2010-08-261-3/+4
| | | | | | | | Updates the project level settings to run the formatter on save on only on the edited lines. Change-Id: I26dd69d0c95e6d73f9fdf7031f3c1dbf3becbb79 Signed-off-by: Chris Aniszczyk <caniszczyk@gmail.com>
* Hide Maven target directories from EclipseRobin Rosenberg2010-08-081-0/+11
| | | | | Change-Id: I64f12a35423a90ced9c9bc83f6869d8ed766dd35 Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>
* Fix concurrent read / write issue in LockFile on WindowsJens Baumgart2010-07-271-4/+8
| | | | | | | | | | LockFile.commit fails if another thread concurrently reads the base file. The problem is fixed by retrying the rename operation if it fails. Change-Id: I6bb76ea7f2e6e90e3ddc45f9dd4d69bd1b6fa1eb Bug: 308506 Signed-off-by: Jens Baumgart <jens.baumgart@sap.com>
* Use a single ObjectReader in IpLogGeneratorShawn O. Pearce2010-06-291-2/+2
| | | | | | | | This way we can be ensured its released when the generator is done running. Change-Id: I6be48d26b9bd5ac176c1316a9aabdf3a897e1696 Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
* Rename openObject, hasObject to just open, hasShawn O. Pearce2010-06-281-1/+1
| | | | | | | | | | Similar to what we did on Repository, the openObject method already implied we wanted to open an object, given its main argument was of type AnyObjectId. Simplify the method name to just the action, has or open. Change-Id: If055e5e0d8de0e2424c18a773f6d2bc2f66054f4 Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
* Remove Repository.openObject(ObjectReader, AnyObjectId)Shawn O. Pearce2010-06-281-7/+2
| | | | | | | | | | Going through ObjectReader.openObject(AnyObjectId) is faster, but also produces cleaner application level code. The error checking is done inside of the openObject method, which means it can be removed from the application code. Change-Id: Ia927b448d128005e1640362281585023582b1a3a Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
* Move FileRepository to storage.file.FileRepositoryShawn O. Pearce2010-06-262-2/+3
| | | | | | | | | | | | This move isolates all of the local file specific implementation code into a single package, where their package-private methods and support classes are properly hidden away from the rest of the core library. Because of the sheer number of files impacted, I have limited this change to only the renames and the updated imports. Change-Id: Icca4884e1a418f83f8b617d0c4c78b73d8a4bd17 Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
* Replace WindowCache with ObjectReaderShawn O. Pearce2010-06-251-3/+4
| | | | | | | | | | | | | | | | The WindowCache is an implementation detail of PackFile and how its used by ObjectDirectory. Lets start to hide it and replace the public API with a more generic concept, ObjectReader. Because PackedObjectLoader is also considered a private detail of PackFile, we have to make PackWriter temporarily dependent upon the WindowCursor and thus FileRepository and ObjectDirectory in order to just start the refactoring. In later changes we will clean up the APIs more, exposing sufficient support to PackWriter without needing the file specific implementation details. Change-Id: I676be12b57f3534f1285854ee5de1aa483895398 Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
* Fix line endingsMatthias Sohn2010-06-181-54/+54
| | | | | | | | Some sources had dos line endings. Also configure all projects to use unix line endings and UTF-8 text encoding. Change-Id: I8fc9a1dbb219ffa91d1b3011b3b11b7e48e74ca7 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
* Merge changes ↵Shawn Pearce2010-06-141-28/+32
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I53f71dc0,I3a899a3a,I3e8bd245,Ie7c9db83,If396326e,I6f4cf8da,I3bf96dd0,I3a2a43a1,I292fe88c,Ia1cf40cf * changes: git-servlet: Fix comparing uploadFactory with the wrong DISABLED instance Prefer static inner classes Override equals for SwingLane since super class PlotLane defines it Make sure a Stream is closed upon errors in IpLogGenerator Make constant static in RebuildCommitGraph Make inner classes static in http code Cache filemode in GitIndex Remove unused parent field in PlotLane Removed unused repo field in WorkDirCheckout Extend DiffFormatter API to simplify styling
| * Make sure a Stream is closed upon errors in IpLogGeneratorRobin Rosenberg2010-06-131-28/+32
| | | | | | Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>
* | Start 0.9 developmentShawn O. Pearce2010-06-142-15/+15
|/ | | | | Change-Id: I84173ece5100f1fcb78168e2e102b649d9466c08 Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
* Qualify post-0.8.1 buildsShawn O. Pearce2010-06-022-15/+15
| | | | | Change-Id: Id86e5876b2f684b2a272c07061a276b054ba410d Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
* JGit 0.8.1v0.8.1Shawn O. Pearce2010-06-022-15/+15
| | | | | Change-Id: I3d4ac7d0617a3575019e2ed748ed2a298a988340 Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
* Merge "Describe how to generate iplog."Shawn Pearce2010-06-011-0/+54
|\
| * Describe how to generate iplog.Matthias Sohn2010-05-291-0/+54
| | | | | | | | | | Change-Id: I91f249422efbb6aea0491e276ccfe00f5ae7d212 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
* | eclipse-iplog: Use contribution rather than bug elementShawn O. Pearce2010-05-283-40/+20
| | | | | | | | | | | | | | | | | | | | | | Wayne changed the schema to no longer be dependent upon the Bugzilla notion of a contribution, but instead be more generic and better support systems like Gerrit Code Review. Update our output to use the <contribution> element and include a link to the change in Gerrit. Change-Id: Ibc8a436918bd8e7597dc17743824201a74bce09b Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
* | eclipse-iplog: Add new consumes element to IP logShawn O. Pearce2010-05-282-12/+59
| | | | | | | | | | | | | | | | | | This element documents other Eclipse projects that are consumed by this project. JGit doesn't consume any projects, but its sister project EGit does. Change-Id: Ie922d27c580f6742e2acb051815a381af48df7ca Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
* | eclipse-ipzilla: Correctly parse result with empty last fieldShawn O. Pearce2010-05-281-0/+2
|/ | | | | | | | | | | If the last field of our IPzilla query comes back empty, we were skipping over and not including it in the result List, causing an IndexOutOfBoundsException when it was read into our data model. If the last field is empty, actually add the empty string. Change-Id: Ib18b335990c73e036b185199d0004f4ffc395867 Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
* Externalize strings from JGitSasa Zivkov2010-05-1913-28/+134
| | | | | | | | | | | | | | | The strings are externalized into the root resource bundles. The resource bundles are stored under the new "resources" source folder to get proper maven build. Strings from tests are, in general, not externalized. Only in cases where it was necessary to make the test pass the strings were externalized. This was typically necessary in cases where e.getMessage() was used in assert and the exception message was slightly changed due to reuse of the externalized strings. Change-Id: Ic0f29c80b9a54fcec8320d8539a3e112852a1f7b Signed-off-by: Sasa Zivkov <sasa.zivkov@sap.com>
* Qualify builds as 0.8.0Shawn O. Pearce2010-03-202-14/+14
| | | | | | | | | Since the API is changing relative to 0.7.0, we'll call our next release 0.8.1. But until that gets released, builds from master will be 0.8.0.qualifier. Change-Id: I921e984f51ce498610c09e0db21be72a533fee88 Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
* eclipse-iplog: Skip the initial contributionShawn O. Pearce2010-03-113-3/+30
| | | | | | | | | | | | | | | | The initial contribution was handled through a CQ, and does not need to be reported as an individual bug record in the project's IP log. Its an odd corner case that the EMO IP team doesn't want to see, even though its technically a contribution written by at least some non-committers. The project.skipCommit variable can now be used to mask out any particular change from the IP log. Currently within JGit we want to mask only the initial commit, but others could be masked if the need arises. Change-Id: I598e08137ddc5913284471ee2aa545f4df685023 Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
* eclipse-iplog: Require at least one project sectionShawn O. Pearce2010-03-111-0/+6
| | | | | | | | We need at least one project definition to dump out a reasonably sane IP log file in XML format. Change-Id: I5cfcd70cd98e29159014cf3dbf0433dd9c49d49c Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
* eclipse-iplog: Correct line counts in initial commitShawn O. Pearce2010-03-111-1/+1
| | | | | | | | | The initial commit line counts where wrong in the IP log, as we were incrementing the file pointer by not the number of bytes in the line, but the offset of the start of the next line. Change-Id: Ia220ba235e9fa522f3f5591b76652c174bcb094d Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
* eclipse-ipzilla: Make sure login was successfulShawn O. Pearce2010-03-111-0/+38
| | | | | | | | | | | | | If the login fails due to an invalid username or password, the only way we can tell this is by looking at the page title and seeing if the error message "Invalid Username or Password" is present. If the user made a typo on their password, we shouldn't plow through and try to run a query. Doing so returns an HTML login page that can't be parsed as a CSV file. Change-Id: Ia6d7f862435a52ae09ebe29c3835bcee3cf73b93 Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
* Cleanup OSGi Import-Package specifications to use versionsShawn O. Pearce2010-02-021-12/+12
| | | | | | | | | Actually set the range of versions we are willing to accept for each package we import, lest we import something in the future that isn't compatible with our needs. Change-Id: I25dbbb9eaabe852631b677e0c608792b3ed97532 Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
* Generate an Eclipse IP log with jgit eclipse-iplogShawn O. Pearce2010-01-2924-0/+2622
The new plugin contains the bulk of the logic to scan a Git repository, and query IPZilla, in order to produce an XML formatted IP log for the requested revision of any Git based project. This plugin is suitable for embedding into a servlet container, or into the Eclipse workbench. The command line pgm package knows how to invoke this plugin through the eclipse-iplog subcommand, permitting storage of the resulting log as a local XML file. Change-Id: If01d9d98d07096db6980292bd5f91618c55d00be Signed-off-by: Shawn O. Pearce <spearce@spearce.org>