]> source.dussan.org Git - jgit.git/commit
UploadPack: Avoid walking the entire project history 30/2430/2
authorShawn O. Pearce <spearce@spearce.org>
Sun, 6 Feb 2011 03:00:15 +0000 (19:00 -0800)
committerChris Aniszczyk <caniszczyk@gmail.com>
Sun, 13 Feb 2011 21:26:26 +0000 (15:26 -0600)
commitd6b7139cd85f718fa241b51628835a21c5d81833
tree19298ba2d490e25cd6ff98614609770309168593
parent8949ea47897fcff30de204cb10957b68d5d21345
UploadPack: Avoid walking the entire project history

If the client presents a common commit on a side branch, and there is
a want for a disconnected branch UploadPack was walking back on the
entire history of the disconnected branch because it never would find
the common commit.

Limit our search back along any given want to be no earlier than the
oldest common commit received via a "have" line from our client.  This
prevents us from looking at all of the project history.

Bug: 301639
Change-Id: Iffaaa2250907150d6efa1cf2f2fcf59851d5267d
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Chris Aniszczyk <caniszczyk@gmail.com>
org.eclipse.jgit/src/org/eclipse/jgit/revwalk/filter/CommitTimeRevFilter.java
org.eclipse.jgit/src/org/eclipse/jgit/transport/UploadPack.java