librelist archives

« back to archive

Problems with implementation of shelve command

Problems with implementation of shelve command

From:
Dr. Christoph Giess
Date:
2015-08-24 @ 17:49
Hi all,

I have implemented the shelve command (see

https://bitbucket.org/cgiess/javahg/commits/2d12d2837ba3221352409391399f54733c372e19
)
and try to test it thoroughly.

With Mercurial 3.0 to 3.1.2 everything seems to work fine.
However, I always get the following exception with Mercurial 3.2 to 3.5
  com.aragost.javahg.commands.ExecutionException: 
00changelog.i@91d817d6a280: no node!
when I issue two modifying shelve commands.

hg shelves
hg shelve --log   # OK as it changes nothing
hg shelve         # => Exception

When I close and reopen the repository before the 2nd "hg shelve"
the program works.

I have no idea what happens there and debugging did not give me
more information that the stacktrace:
 at 
com.aragost.javahg.internals.AbstractCommand.handleReturnCode(AbstractCommand.java:385)
 at 
com.aragost.javahg.internals.OutputChannelInputStream.findNextOutputChannelBlock(OutputChannelInputStream.java:179)
 at 
com.aragost.javahg.internals.OutputChannelInputStream.read(OutputChannelInputStream.java:119)
 at java.io.BufferedInputStream.read1(BufferedInputStream.java:284)
 at java.io.BufferedInputStream.read(BufferedInputStream.java:345)
 at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:284)
 at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:326)
 at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:178)
 at java.io.InputStreamReader.read(InputStreamReader.java:184)
 at java.io.Reader.read(Reader.java:100)

Has anybody an idea what the problem might be?

Regards,
 Christoph

Re: [javahg] Problems with implementation of shelve command

From:
Martin Geisler
Date:
2015-08-25 @ 09:42
Hey Christoph,

I don't know what the problem is, I just wanted to tell you that I'm not
really active in the project any longer. I don't think Jan is very active
either.

Infact, I think a new maintainer would be a good idea :-) Let us know if
you would be interested in this and we can add you as a maintainer on the
Bitbucket repository.

On Mon, Aug 24, 2015 at 7:49 PM, Dr. Christoph Giess <ch.giess@gmx.de>
wrote:

> Hi all,
>
> I have implemented the shelve command (see
>
> 
https://bitbucket.org/cgiess/javahg/commits/2d12d2837ba3221352409391399f54733c372e19
> )
> and try to test it thoroughly.
>
> With Mercurial 3.0 to 3.1.2 everything seems to work fine.
> However, I always get the following exception with Mercurial 3.2 to 3.5
>   com.aragost.javahg.commands.ExecutionException:
> 00changelog.i@91d817d6a280: no node!
> when I issue two modifying shelve commands.
>
> hg shelves
> hg shelve --log   # OK as it changes nothing
> hg shelve         # => Exception
>
> When I close and reopen the repository before the 2nd "hg shelve"
> the program works.
>
> I have no idea what happens there and debugging did not give me
> more information that the stacktrace:
>  at
> 
com.aragost.javahg.internals.AbstractCommand.handleReturnCode(AbstractCommand.java:385)
>  at
> 
com.aragost.javahg.internals.OutputChannelInputStream.findNextOutputChannelBlock(OutputChannelInputStream.java:179)
>  at
> 
com.aragost.javahg.internals.OutputChannelInputStream.read(OutputChannelInputStream.java:119)
>  at java.io.BufferedInputStream.read1(BufferedInputStream.java:284)
>  at java.io.BufferedInputStream.read(BufferedInputStream.java:345)
>  at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:284)
>  at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:326)
>  at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:178)
>  at java.io.InputStreamReader.read(InputStreamReader.java:184)
>  at java.io.Reader.read(Reader.java:100)
>
> Has anybody an idea what the problem might be?
>
> Regards,
>  Christoph
>