* [JGIT PATCH] RevWalk: Fix RevSort.REVERSE combined with RevSort.TOPO
@ 2008-09-07 21:00 Shawn O. Pearce
2008-09-07 21:03 ` Shawn O. Pearce
2008-09-07 21:21 ` Robin Rosenberg
0 siblings, 2 replies; 4+ messages in thread
From: Shawn O. Pearce @ 2008-09-07 21:00 UTC (permalink / raw)
To: Robin Rosenberg; +Cc: git, Shawn O. Pearce
From: Shawn O. Pearce <sop@google.com>
The reverse sort was using the initial pending queue, not the
generator that comes before it in the workflow. This caused
a combination of TOPO and REVERSE to return no commits.
Signed-off-by: Shawn O. Pearce <sop@google.com>
---
.../org/spearce/jgit/revwalk/StartGenerator.java | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/org.spearce.jgit/src/org/spearce/jgit/revwalk/StartGenerator.java b/org.spearce.jgit/src/org/spearce/jgit/revwalk/StartGenerator.java
index 7ddcd3c..1b7947f 100644
--- a/org.spearce.jgit/src/org/spearce/jgit/revwalk/StartGenerator.java
+++ b/org.spearce.jgit/src/org/spearce/jgit/revwalk/StartGenerator.java
@@ -144,7 +144,7 @@ RevCommit next() throws MissingObjectException,
&& (g.outputType() & SORT_TOPO) == 0)
g = new TopoSortGenerator(g);
if (walker.hasRevSort(RevSort.REVERSE))
- g = new LIFORevQueue(q);
+ g = new LIFORevQueue(g);
if (boundary)
g = new BoundaryGenerator(w, g);
--
1.6.0.1.319.g9f32b
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [JGIT PATCH] RevWalk: Fix RevSort.REVERSE combined with RevSort.TOPO
2008-09-07 21:00 [JGIT PATCH] RevWalk: Fix RevSort.REVERSE combined with RevSort.TOPO Shawn O. Pearce
@ 2008-09-07 21:03 ` Shawn O. Pearce
2008-09-07 21:21 ` Robin Rosenberg
1 sibling, 0 replies; 4+ messages in thread
From: Shawn O. Pearce @ 2008-09-07 21:03 UTC (permalink / raw)
To: Robin Rosenberg; +Cc: git
"Shawn O. Pearce" <spearce@spearce.org> wrote:
> From: Shawn O. Pearce <sop@google.com>
>
> The reverse sort was using the initial pending queue, not the
> generator that comes before it in the workflow. This caused
> a combination of TOPO and REVERSE to return no commits.
>
> Signed-off-by: Shawn O. Pearce <sop@google.com>
Arrrgh. Wrong email.
Drop the From and fix the SOB to be:
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
--
Shawn.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [JGIT PATCH] RevWalk: Fix RevSort.REVERSE combined with RevSort.TOPO
2008-09-07 21:00 [JGIT PATCH] RevWalk: Fix RevSort.REVERSE combined with RevSort.TOPO Shawn O. Pearce
2008-09-07 21:03 ` Shawn O. Pearce
@ 2008-09-07 21:21 ` Robin Rosenberg
2008-09-07 21:32 ` Shawn O. Pearce
1 sibling, 1 reply; 4+ messages in thread
From: Robin Rosenberg @ 2008-09-07 21:21 UTC (permalink / raw)
To: Shawn O. Pearce; +Cc: git
söndagen den 7 september 2008 23.00.08 skrev Shawn O. Pearce:
> From: Shawn O. Pearce <sop@google.com>
>
> The reverse sort was using the initial pending queue, not the
> generator that comes before it in the workflow. This caused
> a combination of TOPO and REVERSE to return no commits.
Some unit tests to back this up would be nice. We running low on
coverage in this section of code.
> Signed-off-by: Shawn O. Pearce <sop@google.com>
No idea Google employees had this short email addresses. Ok, 27x27x27 = 19683
would be sufficient in theory, I'd suppose.
-- robin
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [JGIT PATCH] RevWalk: Fix RevSort.REVERSE combined with RevSort.TOPO
2008-09-07 21:21 ` Robin Rosenberg
@ 2008-09-07 21:32 ` Shawn O. Pearce
0 siblings, 0 replies; 4+ messages in thread
From: Shawn O. Pearce @ 2008-09-07 21:32 UTC (permalink / raw)
To: Robin Rosenberg; +Cc: git
Robin Rosenberg <robin.rosenberg.lists@dewire.com> wrote:
> söndagen den 7 september 2008 23.00.08 skrev Shawn O. Pearce:
> > From: Shawn O. Pearce <sop@google.com>
> >
> > The reverse sort was using the initial pending queue, not the
> > generator that comes before it in the workflow. This caused
> > a combination of TOPO and REVERSE to return no commits.
>
> Some unit tests to back this up would be nice. We running low on
> coverage in this section of code.
Yea, I know. Its way back on my things-to-do list. Right now I'm
a bit too swamped with day-job to try and put unit tests into the
revwalk package. There's two open issues on the issue tracker that
tests should be able to cover and permit debugging of.
I'll come back to revwalk tests. I did some tests for treewalk
not too long ago, but even more are still need there too. And lets
not even mention the transport package. ;-)
I ran into this bug because I was relying on RevWalk in my day-job
project. When it barfed I fixed it, and moved on.
> > Signed-off-by: Shawn O. Pearce <sop@google.com>
>
> No idea Google employees had this short email addresses. Ok, 27x27x27 = 19683
> would be sufficient in theory, I'd suppose.
Yea, you can get a short address if you ask nicely. Given that
everything is email based its nice having a short address. Makes it
easy to tell others in person how to reach me. Fortunately most
of the company uses longer addresses, so three (and four) letter
words are still available.
I must not have my egit.git repository configured right on my
work laptop. I usually don't do egit work there.
--
Shawn.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-09-07 21:38 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-07 21:00 [JGIT PATCH] RevWalk: Fix RevSort.REVERSE combined with RevSort.TOPO Shawn O. Pearce
2008-09-07 21:03 ` Shawn O. Pearce
2008-09-07 21:21 ` Robin Rosenberg
2008-09-07 21:32 ` Shawn O. Pearce
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).