Re: [darcs-users] vc-darcs.el and the length of hashes (cons: Args out of range)

2015-12-16 Thread Dave Love
Ivan Zakharyaschev  writes:

> On Tue, 15 Dec 2015, Ivan Zakharyaschev wrote:
>
>> implementation mentioned at http://darcs.net/RelatedSoftware/Emacs and
>> http: //www.emacswiki.org/emacs/DaRcs --
>> http: //www.loveshack.ukfsn.org/emacs/vc-darcs.el -- is not available
>> because the site doesn't open.)
>
> Thanks, Steve, for pointing out that that must be Dave Love's site.

Oops.  I'd meant to announce the updated version here, but it doesn't
look as if I did.

> I've just found two vc-darcs repos at hub.darcs.net with changes
> authored by him:
>
> http://hub.darcs.net/fx/vc-darcs/changes
> http://hub.darcs.net/ddssff/vc-darcs/changes
>
> The first one seems to have incorporated the changes from the second
> fork, and having fresh changes by Dave Love from as late as October
> 04, 2015.

The second is nothing to do with me and looks like a proper subset fork.

> (Now, I don't have time to try it out.)

It should just work with recent Emacsen (to the extent that Emacs VC
will support darcs-like systems, even now, sigh).  It may work as far
back as Emacs 21 (but I don't have darcs on RHEL5), and probably with
fairly old darcsen as well as the current release.  It's painful to keep
up with all the Emacs incompatibilities and changes in darcs which break
things like this, though.

I use it (and darcsum.el) for development work, and if it has problems
that aren't due to Emacs I can probably fix them swiftly (but mail me,
since there aren't alerts for issues on the hub).  It's unfortunate I
couldn't get it into Emacs, which was what it was written for, or darcs
contrib.

> So, the wikis should probably be updated accordingly -- to point to
> the live darcs repo with the code. (Perhaps, I'll do that a bit
> later.)

I'd forgotten about the mention on the darcs wiki.  I'll see if I can
still edit that.
___
darcs-users mailing list
darcs-users@darcs.net
http://lists.osuosl.org/mailman/listinfo/darcs-users


Re: [darcs-users] vc-darcs.el and the length of hashes (cons: Args out of range)

2015-12-15 Thread Ivan Zakharyaschev

On Tue, 15 Dec 2015, Ivan Zakharyaschev wrote:


implementation mentioned at http://darcs.net/RelatedSoftware/Emacs and
http: //www.emacswiki.org/emacs/DaRcs --
http: //www.loveshack.ukfsn.org/emacs/vc-darcs.el -- is not available
because the site doesn't open.)


Thanks, Steve, for pointing out that that must be Dave Love's site.

I've just found two vc-darcs repos at hub.darcs.net with changes authored 
by him:


http://hub.darcs.net/fx/vc-darcs/changes
http://hub.darcs.net/ddssff/vc-darcs/changes

The first one seems to have incorporated the changes from the second 
fork, and having fresh changes by Dave Love from as late as October 04, 
2015.


(Now, I don't have time to try it out.)

So, the wikis should probably be updated accordingly -- to point to the 
live darcs repo with the code. (Perhaps, I'll do that a bit later.)


Best regards,
Ivan.
___
darcs-users mailing list
darcs-users@darcs.net
http://lists.osuosl.org/mailman/listinfo/darcs-users


Re: [darcs-users] vc-darcs.el and the length of hashes (cons: Args out of range)

2015-12-14 Thread Ivan Zakharyaschev

On Tue, 15 Dec 2015, Ivan Zakharyaschev wrote:

I'm not sure about where this inconsistency comes from. Perhaps, an older 
version of darcs had a different interface w.r.t. the ids of patches. 
Understanding this would make it clearer how to proceed with a possible fix 
(keep both variants or not, check versions,...). Do you have any suggestions?


A stupid fix which works for the newer darcs has been pushed to 
http://hub.darcs.net/imz/vc-darcs_jch/patch/2744a57b44e61a4ab186fe38d8d4645b467ce4e2 
.



SHA1 is 40 hexadecimal digits long -- https://en.wikipedia.org/wiki/SHA-1 .

And vc-darcs.el tries to get 62 symbols of `h' in `vc-darcs-changes'...

So, is `h' the hash?..

  (let ((h (cdr (assoc 'hash (cadr e)
(when h
  (push (substring h 0 61) l))

Probably, yes. So, something is wrong (40 vs 62)...


--
Ivan
___
darcs-users mailing list
darcs-users@darcs.net
http://lists.osuosl.org/mailman/listinfo/darcs-users