git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* EGIT packed delta format reading
@ 2006-08-06 18:37 Robin Rosenberg
  2006-08-06 18:40 ` [PATCH] Fixes to " Robin Rosenberg
  2006-08-07  4:07 ` EGIT " Shawn Pearce
  0 siblings, 2 replies; 4+ messages in thread
From: Robin Rosenberg @ 2006-08-06 18:37 UTC (permalink / raw)
  To: git

Hi,

I deciced to take Shawns Eclipse plugin for a run. There was
some problem reading the pack files that seemed to work after
applying the following fixes, i.e. I could connect to the
project and the interal structures looks ok in the debugger
as far as I can tell, but decorations don't work. That's as
far as I've been testing up to now.

BTW. How should EGIT patches be formatted to distingish them
from git patches? I'm sending this using StGit.

-- robin

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH] Fixes to packed delta format reading.
  2006-08-06 18:37 EGIT packed delta format reading Robin Rosenberg
@ 2006-08-06 18:40 ` Robin Rosenberg
  2006-08-07  4:03   ` Shawn Pearce
  2006-08-07  4:07 ` EGIT " Shawn Pearce
  1 sibling, 1 reply; 4+ messages in thread
From: Robin Rosenberg @ 2006-08-06 18:40 UTC (permalink / raw)
  To: git

From: Robin Rosenberg <robin.rosenberg@dewire.com>


---

 .../src/org/spearce/jgit/lib/PatchDeltaStream.java |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/org.spearce.jgit/src/org/spearce/jgit/lib/PatchDeltaStream.java b/org.spearce.jgit/src/org/spearce/jgit/lib/PatchDeltaStream.java
index 808e854..11a7679 100644
--- a/org.spearce.jgit/src/org/spearce/jgit/lib/PatchDeltaStream.java
+++ b/org.spearce.jgit/src/org/spearce/jgit/lib/PatchDeltaStream.java
@@ -105,7 +105,7 @@ public class PatchDeltaStream extends In
                             + " load delta base for patching.");
                     }
                     shift += n;
-                    expBaseLen += n;
+                    expBaseLen -= n;
                 }
             }
             finally
@@ -269,7 +269,7 @@ public class PatchDeltaStream extends In
         throws IOException
     {
         int r;
-        while ((r = read(buf, o, len)) > 0)
+        while ((r = deltaStream.read(buf, o, len)) > 0)
         {
             o += r;
             len -= r;

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] Fixes to packed delta format reading.
  2006-08-06 18:40 ` [PATCH] Fixes to " Robin Rosenberg
@ 2006-08-07  4:03   ` Shawn Pearce
  0 siblings, 0 replies; 4+ messages in thread
From: Shawn Pearce @ 2006-08-07  4:03 UTC (permalink / raw)
  To: Robin Rosenberg; +Cc: git

> ---
> 
>  .../src/org/spearce/jgit/lib/PatchDeltaStream.java |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/org.spearce.jgit/src/org/spearce/jgit/lib/PatchDeltaStream.java b/org.spearce.jgit/src/org/spearce/jgit/lib/PatchDeltaStream.java
> index 808e854..11a7679 100644
> --- a/org.spearce.jgit/src/org/spearce/jgit/lib/PatchDeltaStream.java
> +++ b/org.spearce.jgit/src/org/spearce/jgit/lib/PatchDeltaStream.java
> @@ -105,7 +105,7 @@ public class PatchDeltaStream extends In
>                              + " load delta base for patching.");
>                      }
>                      shift += n;
> -                    expBaseLen += n;
> +                    expBaseLen -= n;
>                  }
>              }
>              finally
> @@ -269,7 +269,7 @@ public class PatchDeltaStream extends In
>          throws IOException
>      {
>          int r;
> -        while ((r = read(buf, o, len)) > 0)
> +        while ((r = deltaStream.read(buf, o, len)) > 0)
>          {
>              o += r;
>              len -= r;

Thanks.  I actually found these Friday night when I started reviewing
the code to double check its compliance with A Large Angry SCM's
file format documentation.  These were already made locally but I
didn't push them out to my web repository yet.  I'll do that shortly.

-- 
Shawn.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: EGIT packed delta format reading
  2006-08-06 18:37 EGIT packed delta format reading Robin Rosenberg
  2006-08-06 18:40 ` [PATCH] Fixes to " Robin Rosenberg
@ 2006-08-07  4:07 ` Shawn Pearce
  1 sibling, 0 replies; 4+ messages in thread
From: Shawn Pearce @ 2006-08-07  4:07 UTC (permalink / raw)
  To: Robin Rosenberg; +Cc: git

Robin Rosenberg <robin.rosenberg@dewire.com> wrote:
> Hi,
> 
> I deciced to take Shawns Eclipse plugin for a run. There was
> some problem reading the pack files that seemed to work after
> applying the following fixes, i.e. I could connect to the
> project and the interal structures looks ok in the debugger
> as far as I can tell, but decorations don't work. That's as
> far as I've been testing up to now.

I'll take a look at it again, as soon as I get the tree entry
sorting fixed.
 
> BTW. How should EGIT patches be formatted to distingish them
> from git patches? I'm sending this using StGit.

You can use StGit to send patches, or any other GIT based tool.
After all, we're using GIT.  :-)

As far as marking patches specifically as an egit/jgit patch you can
send them directly to me and CC: the mailing list.  The egit/jgit
file names are pretty distinctive, just as the core GIT and Cogito
file names are.  I doubt folks will get confused as to which project
a patch belongs to...

-- 
Shawn.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-08-07  4:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-06 18:37 EGIT packed delta format reading Robin Rosenberg
2006-08-06 18:40 ` [PATCH] Fixes to " Robin Rosenberg
2006-08-07  4:03   ` Shawn Pearce
2006-08-07  4:07 ` EGIT " Shawn 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).