Benjamin Franksen | 21 May 2013 12:48
Picon
Favicon

Wish: darcs diff --related-repo

Say we have two related repositories 'head' and 'dev', actually both 
branches of the same project, i.e. 'dev' contains a number of patches that 
are not in 'head'. Now I want to see the end-result of all I have done in 
'dev' compared to the 'head' branch, suitable for displaying in a graphical 
diff viewer such as kompare.

I can do 'darcs push ../head --dry-run -v' but the result is not usable for 
external diff viewers. One possible solution would be an extra option for 
'darcs diff' that selects another (related) repository such as indicated in 
the subject line of this message; so I could say

	darcs diff --related-repo=../head --diff-command="kompare %1 %2"

A simple work-around is to (temporarily) tag the 'head' branch, pull the 
tag, and then 'darcs diff --from-tag'. This could also hint to a possible 
implementation of the feature.

Cheers
--

-- 
Ben Franksen
()  ascii ribbon campaign - against html e-mail 
/\  www.asciiribbon.org   - against proprietary attachm?nts
xancorreu | 8 May 2013 20:14
Picon

Display correctly utf-8 in commit info

Hi,

I use utf-8 intensively: in console and in files it's my default encoding.
With export DARCS_DONT_ESCAPE_EXTRA="áàéèíïóúüñÁÀÉÈÍÏÓÒÚÚÑ", export 
DARCS_DONT_ESCAPE_ISPRINT=1
or export DARCS_DONT_ESCAPE_8BIT=1 there is no problem for displaying 
files and diff changes when I run "darcs log --verbose", but the commit 
messages *don't* appear in UTF-8:

$ darcs log --verbose
Sun May 5 22:10:18 CEST 2013 xan <at> localhost
* O no <U+00E9>s aix<U+00ED>
hunk ./holamón.txt 1
-Hola què tal
+Hola què tal. O no és així

Sun May 5 22:05:19 CEST 2013 xan <at> localhost
* Hola m<U+00F3>n
addfile ./holamón.txt
hunk ./holamón.txt 1
+Hola què tal

How can I do for displaying the commit message in UTF-8? With 8BIT=1, I get:

$ darcs log --verbose
Sun May 5 22:10:18 CEST 2013 xan <at> localhost
* O no �s aix
hunk ./holamón.txt 1
-Hola què tal
+Hola què tal. O no és així
(Continue reading)

Joe Nash | 1 May 2013 19:25
Picon

GSoC 2013 Darcsden

Hi there,
This project sounds quite interesting and I'd like to write a proposal for it. Unfortunately I've only just seen the email about the darcs projects and the deadline is drawing close, and being unfamiliar with the code or the issue I have no idea where to start! 

I'd greatly appreciate more information on this project if any of the proposers or anyone in the know is reading!

For some background, I'm a second year Computer science student at the University of Nottingham, and have used Haskell quite extensively in my degree thus far, with only more to come. Additionally I have a fair bit of experience with web applications.

Cheers,
Joe Nash
_______________________________________________
darcs-users mailing list
darcs-users <at> darcs.net
http://lists.osuosl.org/mailman/listinfo/darcs-users
Ben Franksen | 1 May 2013 01:51
Picon

hunk move as primitive change

Hi Everyone

This is something I have on my wish-list for longer than I can think. The 
idea is quite simple: a primitive change type that says "this sequence of 
lines moved from file X line N to file Y line M". Here, X and Y need not be 
different, i.e. a hunk move need not be between different files.

To my knowledge no existing VCS has such a feature. There are two advantages 
I expect:

(1) Moving code around is something I do regularly in the process of 
cleaning up my (or other's) code. Currently such changes are represented 
(e.g. when using record or whatsnew) as "remove these lines from file X line 
N (long block of code follows), add these lines to file Y line M (another 
long block of code follows)". The remove and insert changes need not even be 
adjacent to one another (they typically are not) and even if they are it is 
very hard for the human eye to spot small differences in a long stretch of 
text. So if the tool told me I have a move (or I could tell it that this is 
the case) then I could be confident that no functional change occurred.

(2) A hunk move commutes with changes /inside/ the hunk, or at least I can 
see no reason why it should not. This is not the case for the way such a 
move is represented now (as a remove and insert). This would mean more 
changes commute and thus less (accidental, unwanted) conflicts.

Even though the idea is simple, this is certainly not "low hanging fruit". 
It would be necessary to somehow record that the context for changes further 
down in the affected files translates up resp. down (by the number of lines 
moved), and to update this information when commuting such a change with 
other changes. On the other hand, for regular hunks we do that already, so 
maybe it is not that difficult after all. In any case adding a new primitive 
change type most probably counts as a "deep" change to the Darcs code; and I 
wonder if the repository format would have to be adapted and whether this 
could be done in a backward compatible way.

BTW, a "better record command" as in the GSOC proposal (which I find very 
promising) could be tought to detect hunk moves and present them to the user 
as such. It could even propose to record a move if there /are/ additional 
changes inside such a moved hunk, i.e. separate the move from (minor) 
changes made to the affected lines, using some kind of similarity measure.

I would love to hear what you think about that.

Cheers
--

-- 
Ben Franksen
()  ascii ribbon campaign - against html e-mail 
/\  www.asciiribbon.org   - against proprietary attachm€nts

_______________________________________________
darcs-users mailing list
darcs-users <at> darcs.net
http://lists.osuosl.org/mailman/listinfo/darcs-users
Guillaume Hoffmann | 30 Apr 2013 21:26
Picon

darcs weekly news #103

# News and discussions

1.  Darcs will be participating to this year's Google Summer of Code under
    the umbrella of Haskell.org! If you are interested please consult the ideas
    page and contact us:

    -   <http://darcs.net/GSoC>

2.  Sebastian Fischer implemented `darcs-history`, a program to be used as
    darcs posthook and that tracks patch movements inside of a repository:

    -   <http://lists.osuosl.org/pipermail/darcs-devel/2013-February/014754.html>
    -   <http://lists.osuosl.org/pipermail/darcs-devel/2013-February/014898.html>
    -   <http://www.informatik.uni-kiel.de/~sebf/darcs/darcs-history/README.html>

3.  Sebastian also suggested the possibility for darcs to easily split and
    merge patches that are depended upon:

    -   <http://lists.osuosl.org/pipermail/darcs-devel/2013-March/014965.html>

4.  Piyush P Kurur was also interested in some special kinds of deep
    `amend-record`:

    -   <http://lists.osuosl.org/pipermail/darcs-users/2013-March/026838.html>

# Issues resolved in the last week (1)

issue2274 Guillaume Hoffmann
  ~ -   create patch index only with commands that take a lock
    -   <http://bugs.darcs.net/issue2274>

# Patches applied in the last week (27)

2013-02-15 Ganesh Sittampalam
  ~ -   rename iconv functions imported from haskeline to avoid name clash
    -   accept issue2293: patch index update reads too much of the repo
    -   switch from sleep to threadDelay to fix warning

2013-02-22 Guillaume Hoffmann
  ~ -   set timeout to 1 second in expire-unused-caches test

2013-02-25 Ganesh Sittampalam
  ~ -   make --no-interactive an alias for --all

2013-02-21 Florent Becker
  ~ -   Make darcs changes interactive by default (darcs log is non-interactive)
    -   Mark issue1105 as failing again

2013-01-02 Ganesh Sittampalam
  ~ -   test for issue2286: make sure we can read repos with non-UTF8 metadata

2013-02-22 Guillaume Hoffmann
  ~ -   warn earlier when DARCS_CONNECTION_TIMEOUT is not a number
    -   correctly set curl connection timeout
    -   no longer enable changes and annotate to create patch index
    -   Resolve issue2274: create patch index only with commands that
take a lock
    -   improve output of get with and without --verbose
    -   enable get --packs by default again
    -   remove trackdown-bisect.sh long tests
    -   less confusing apply --skip-conflicts message when everything conflicts

2013-01-01 Ganesh Sittampalam
  ~ -   We can use chcp to switch encodings on Windows
    -   unsetting DARCS_TEST_PREFS_DIR in utf8 test doesn't seem to be necessary
    -   improve diagnostics when utf8 test fails
    -   windows test fix: replace shell script with a Haskell program
    -   disable join tests on Prim.V3 patches as it doesn't support join yet
    -   remove a couple of quickCheck tests that can never work
    -   bump cryptohash dependency

2013-04-10 Owen Stephens
  ~ -   accept issue1577 - revert deletes new files

2013-02-16 Ganesh Sittampalam
  ~ -   simplify test case

2013-03-01 Owen Stephens
  ~ -   accept issue2310: rollback rmfile doesnt re-add in pending
    -   Accept issue2308
Marcio Díaz | 29 Apr 2013 06:26
Picon
Gravatar

GSoC Proposal - Better record command

Hi everyone, I've uploaded my proposal for the GSoC, you can see it here:


I would like to hear your comments.

Marcio.
_______________________________________________
darcs-users mailing list
darcs-users <at> darcs.net
http://lists.osuosl.org/mailman/listinfo/darcs-users
Ash Moran | 28 Apr 2013 22:03
Picon
Gravatar

Best place for Darcs Hub questions

Hi

I've added a card[1] to the Darcs Hub wishlist on Trello (reset password feature). It contains a non-urgent
implicit support request (it would be nice if the person I was trying to show a file to could log in before
this feature is added). Is darcs-users the best place to raise feature requests etc for Darcs Hub, or
should I be sending them somewhere else?

Thanks
Ash

[1] https://trello.com/c/kew04adB

--

-- 
http://www.patchspace.co.uk/
http://www.linkedin.com/in/ashmoran
Ganesh Sittampalam | 25 Apr 2013 08:00
Picon
Gravatar

Google Summer of Code

Hi,

darcs.net will participating in Google Summer of Code this year, under
the umbrella of haskell.org - Google will be allocating 1 or 2 extra
slots specifically for Darcs.

Time is a little short, as we'd originally thought this arrangement was
coming to an end: the student application deadline is 1900UTC on next
Friday (May 3rd).

Please see http://darcs.net/GSoC for ideas and what to do next if you
are interested in participating. The most important thing is to get in
touch with us informally asap.

Many thanks to Guillaume Hoffmann both for making our initial
application to be a separate organisation (which was unfortunately
rejected), and then for talking to Google and establishing that our
existing arrangement of having a dedicated slot under the haskell.org
umbrella could continue.

Cheers,

Ganesh
Simon Michael | 19 Apr 2013 20:08
Gravatar

packs

Hi BSRK,

On Apr 19, 2013, at 2:38 AM, Aditya wrote:
 Great news! I have looked at the todo.
How can I help?

>> get latest darcs building and with optimizeHttp exported
>> get darcsden building with latest darcs

I assume you mean darcs 2.8.4? (ie not 2.9.x)
It is as simple for 2.8.x but not so simple for 2.9.x. (due to module name changes)

I think both. With -fdarcs28, darcsden builds (or used to) with released darcs, otherwise it builds with latest darcs-screened. IIRC darcs hub's darcsden is built darcs-screened, to get the latest fixes.

>> get darcsden building with latest GHC ?

no comment. I assume it will be simple.

I have been building it with 7.4.2 till now . I'd love to have someone update it for 7.6 so I don't have to.

>> deploy & test on dev instance

We have a few large public repos. (adga, darcs, xmonad).
It will be cool to measure the speed up.

You don't need to deploy it to hub to test this, but I guess you feel it's ready for wider use. I'm keen to encourage hacking and to deploy things on hub quickly, as long as they don't disrupt ordinary users.

We will also have to try it out for other repositories too I guess.
I have tried it out for empty repo, few small repos, and darcs repo.

I would like to help you with this, if you like.

Great, all help is welcome. I'm much more likely to act on a clear list of steps than to do exploratory hacking right now, as I'm about to go on a family trip till the end of the month.

>> deploy to production

yay!

Best - Simon






On Thu, Apr 18, 2013 at 10:20 PM, Simon Michael <simon <at> joyful.com> wrote:
Hi BSRK, thanks for the patches which look good. I've added this to the darcs hub backlog:





--
BSRK Aditya

_______________________________________________
darcs-users mailing list
darcs-users <at> darcs.net
http://lists.osuosl.org/mailman/listinfo/darcs-users
Piyush P Kurur | 18 Apr 2013 09:24
Picon

Patch groups - does this makes sense

Here is my impression of patch groups after reading through some of
the mails in this list.

A patch group of order (or type) n, abbreviated as PG(n), is
inductively defined as

1. patch group of order 0 is the actual patches (hunks, addfile etc)

2. A patch group of order n+1 is a collection of patches of order n

What about patch groups of higher order.

PG(1): is a record (collection of PG(0)s or actual patches)

PG(2): is a branch (a collection of PG(1)s or records).

PG(3): is a repository (a collection of PG(2)s or branches).

PG(4): is a team of repository, a group of people who work on a
project.

PG(n>4): is something that gives me a headache.

For all PG(n>=0), one should be able to attach meta information.

Operations 
----------

Operations are restricted to certain level of the patch group.  We
have record level operations, branch level operations and may be
repository level operations.

PG(0):

  1. Editing the working copy creates/deletes/modifies them
  2. reverting deletes some of them

PG(1):

  1. Creation by recording
  2. Deletion by unpull
  3. Modification by amend-record/rebase etc.

PG(2):
  1. Creation/deletion of branches
  2. Modification: merging

Commutation relations here should govern whether two branches can be
merged or not.  The conflictor here would be the collection of records
that conflict.

PG(3): 

  1. Collaboration among teams, sending pull request etc.

Commutation relations what do they signify? May be whether two pull
request can be interchanged etc. (A pull request can now be
distributed over a set of branches).

Higher order patch groups: I am not sure.

Regards

ppk
Jens Petersen | 25 Mar 2013 05:32
Picon
Gravatar

cabal haddock failing for darcs-2.8.4 with ghc-7.4.2

Dunno if anyone else has encountered this, but I see "cabal haddock"
failing on darcs-2.8.4 when building with ghc-7.4.2 (Fedora 19
development).  There are no clear errors messages output as far as I
can tell but here is an example build failure:

http://koji.fedoraproject.org/koji/taskinfo?taskID=5167231 (the
build.log link is near the bottom)

It builds fine for me with ghc-7.4.1 in Fedora 18.
Should I open a bug in the issue tracker or is it a known problem?

I also see it seems to have built successfully in Debian Experimental
with ghc-7.4.2.

Jens

ps For now I have disabled building with haddock for the Fedora Rawhide build.

Gmane