Marnix Klooster | 11 Feb 21:05 2015
Picon

Fwd: summer of code 2015 ideas: wreq / darcsden

    (This time to the mailing list, instead of just to Guillaume.)

Hi Guillaume,

One small note: to make HTTPS easy to use for Windows darcs users, it is very handy to have it use the Windows certificate store.

I was just curious and checked, and it seems like wreq on Windows does not currently supports this, since wreq depends on http-client-tls, which depends on x509-store, but not on x509-system which looks like it actually reads the Windows certificate store.

So note that that would probably be a restriction: if one wants to use HTTPS with on Windows, one would have to explicitly store the certificate somewhere, which can be a hassle.  (Where would that be with current darcs on Linux with libcurl, by the way? Configure libcurl's CA cert file name as described on http://curl.haxx.se/docs/sslcerts.html, using environment variable CURL_CA_BUNDLE?)

But, of course, having _some_ HTTPS support for darcs on Windows is an improvement over having none at all. :-)

And perhaps updating http-client-tls to use x509-store could be made part of the SoC project...

Groetjes,
 <><
Marnix


On Mon, Feb 9, 2015 at 6:22 PM, Guillaume Hoffmann <guillaumh <at> gmail.com> wrote:
>
> Dear darcs'ers,
>
> this year's Summer of Code program starts son: by end of March,
> student applications should be submitted to Google. We are probably
> going to work again with students that have not contributed to darcs
> before.
>
> Since two students in my university are interested about it, I'd like
> to hear your comments about the following two project ideas I thought
> of.
>
>
> 1. HTTP system overhaul, a.k.a. "switch to wreq and see what happens".
> This would involve having wreq (http://www.serpentine.com/wreq/) as
> default download system, while leaving the current libcurl and HTTP
> code for benchmarking purposes.
>
> The benefits would be:
>
> * no longer requiring separate compilation/installation of libcurl
> * https support under windows (somehow we can't have libcurl under windows?)
> * access to repositories behind http authentication (and probably
> other benefits of wreq)
>
> Deliverables (apart from the code itself):
>
> * HTTP benchmarks (wreq vs libcurl vs HTTP)
> * testing that pipelining actually works
> * testing under windows / linux
>
> 2. Work towards Darcsden as a local UI and other improvements
>
> * plain files backend (vs current CouchDB)
> * other stuff to help Darcsden be a local UI (without actually
> involving any UI work)? any idea?
> * unauthenticated patch submission via darcs send and http
>
> Apart from opinions about these project ideas, if someone thinks there
> are more worthwile projects to do, please tell.
>
>
> Guillaume
> _______________________________________________
> darcs-users mailing list
> darcs-users <at> darcs.net
> http://lists.osuosl.org/mailman/listinfo/darcs-users




--
Marnix Klooster
marnix.klooster <at> gmail.com



--
Marnix Klooster
marnix.klooster <at> gmail.com
_______________________________________________
darcs-users mailing list
darcs-users <at> darcs.net
http://lists.osuosl.org/mailman/listinfo/darcs-users
Guillaume Hoffmann | 9 Feb 18:22 2015
Picon

summer of code 2015 ideas: wreq / darcsden

Dear darcs'ers,

this year's Summer of Code program starts son: by end of March,
student applications should be submitted to Google. We are probably
going to work again with students that have not contributed to darcs
before.

Since two students in my university are interested about it, I'd like
to hear your comments about the following two project ideas I thought
of.

1. HTTP system overhaul, a.k.a. "switch to wreq and see what happens".
This would involve having wreq (http://www.serpentine.com/wreq/) as
default download system, while leaving the current libcurl and HTTP
code for benchmarking purposes.

The benefits would be:

* no longer requiring separate compilation/installation of libcurl
* https support under windows (somehow we can't have libcurl under windows?)
* access to repositories behind http authentication (and probably
other benefits of wreq)

Deliverables (apart from the code itself):

* HTTP benchmarks (wreq vs libcurl vs HTTP)
* testing that pipelining actually works
* testing under windows / linux

2. Work towards Darcsden as a local UI and other improvements

* plain files backend (vs current CouchDB)
* other stuff to help Darcsden be a local UI (without actually
involving any UI work)? any idea?
* unauthenticated patch submission via darcs send and http

Apart from opinions about these project ideas, if someone thinks there
are more worthwile projects to do, please tell.

Guillaume
Manoj Gudi | 3 Feb 13:38 2015
Picon

darcs push hangs

Hey!
I must say that having git learnt first, darcs seems very simple and intuitive to use, really like it!
and now the but:

I am trying to commit a new log file (size 20Mb), `darcs record` works fine, however `darcs push` hangs after asking for credentials..

the repository is hosted on hub.darcs.net; I already checked network and credentials, I can push a small file and it works fine..

When I try the same thing on an another machine, I get output as killed

Shall I push this patch? (1/1)  [ynW...], or ? for more options: y
Killed

I understand that log file shouldn't be version controlled, well, at least not like this.. but I really want to try this cause this fits my use-case (incrementally versioning changes in logs)

Any ideas?

Thanks,
Manoj
_______________________________________________
darcs-users mailing list
darcs-users <at> darcs.net
http://lists.osuosl.org/mailman/listinfo/darcs-users
Ivan Zakharyaschev | 21 Jan 16:51 2015

currently preferred way to import history from Git

Hello!

I've started to explore the available ways to import history from Git,
and have come to some uncertainty.

First, I used Google, and it gave me
<http://darcs.net/DarcsBridgeUsage>. Then, looking at [the history of
the page](http://darcs.net/_history/DarcsBridgeUsage), I realized that
there was some uncertainty with which source repo to announce there.

So, to explore all related wiki modifications, I did:

$ darcs get http://darcs.net/darcs-wiki
$ cd darcs-wiki/
$ find . -iname '*bridge*'
./Bridge.page
./DarcsBridgeUsage.page
./GSoC/2011-Bridge.page
$

And a surprise: there is also http://darcs.net/Bridge , which seems to
be more fresh:

$ darcs log -- Bridge.page | head
Changes to Bridge.page:

Wed Jan 21 02:06:25 MSK 2015  bfrk <>
  * fixed the command sequence for incremental export

Thu Jun 12 23:21:50 MSK 2014  Guillaume Hoffmann <guillaumh <at> gmail.com>
  * clean and update darcs-vs-others pages

Fri Aug 16 17:50:25 MSK 2013  owst <darcs <at> owenstephens.co.uk>
  * Update bridge page to recommend darcs-bridge
$ darcs log -- DarcsBridgeUsage.page | head
Changes to DarcsBridgeUsage.page:

Fri Aug 16 17:52:22 MSK 2013  owst <darcs <at> owenstephens.co.uk>
  * Re-add darcs-bridge repo url, now that it should support simple
one-way conversions

Thu Apr 11 19:08:03 MSK 2013  Owen Stephens <darcs <at> owenstephens.co.uk>
  * Various updates to Bridge information on the wiki

Mon Apr  8 01:16:43 MSK 2013  owst <darcs <at> owenstephens.co.uk>
  * It's not true that darcs-bridge is contained in mornfalls
darcs-fastconvert repository...
$

Which tool should I prefer? Are they substantially different? Does
`darcs convert` work better than `darcs-fastconvert` from
darcs-bridge? Are there any news in this area?

These things seem not to be clarified on the wiki. At least, a note in
<http://darcs.net/DarcsBridgeUsage> stating that it is obsolete (if
this is true) and linking to the more fresh page would help.

Also, if I'm using darcs-2.8.4 from my distro, and according to the
wiki, `darcs convert` is available in darcs-2.10 only, then should I
build a new darcs or try to build darcs-bridge?

Best regards,
--

-- 
Ivan
Xan | 24 Nov 11:08 2014
Picon

bad encoding in patch name

Hi,

I have UTF-8 encoding in my console. In darcs when I put patch name all is fine after it is displayed (See the
question "what is the patch name" and "Finished recording patch"):

Can anyone could help me?

Thanks,

$ darcs record
Each patch is attributed to its author, usually by email address (for
example, `Fred Bloggs <fred <at> example.net>').  Darcs could not determine
your email address, so you will be prompted for it.

Your address will be stored in _darcs/prefs/author.
It will be used for all patches recorded in this repository.
If you move that file to ~/.darcs/author, it will be used for patches
you record in ALL repositories.
What is your email address? somenxavier <at> gmail.com
addfile ./a.txt
Shall I record this change? (1/4)  [ynW...], or ? for more options: y
hunk ./a.txt 1
+a
Shall I record this change? (2/4)  [ynW...], or ? for more options: y
addfile ./b.txt
Shall I record this change? (3/4)  [ynW...], or ? for more options: y
hunk ./b.txt 1
+b
Shall I record this change? (4/4)  [ynW...], or ? for more options: y
What is the patch name? creació de a i b
Do you want to add a long comment? [yn]n
Finished recording patch 'creaci� de a i b'

_______________________________________________
darcs-users mailing list
darcs-users <at> darcs.net
http://lists.osuosl.org/mailman/listinfo/darcs-users
Xan | 24 Nov 11:07 2014
Picon

The minimal set of changes

Hi,

I make a test in darcs: make two files "a.txt" and "b.txt" with content "a" and "b". darcs record. Then
exchange the contents ("a.txt" has "b" and "b.txt" has "a"):

$ darcs what
addfile ./a.txt
hunk ./a.txt 1
+a
addfile ./b.txt
hunk ./b.txt 1
+b
[xan <at> rulot darcs-vs]$ darcs record
Each patch is attributed to its author, usually by email address (for
example, `Fred Bloggs <fred <at> example.net>').  Darcs could not determine
your email address, so you will be prompted for it.

Your address will be stored in _darcs/prefs/author.
It will be used for all patches recorded in this repository.
If you move that file to ~/.darcs/author, it will be used for patches
you record in ALL repositories.
What is your email address? somenxavier <at> gmail.com
addfile ./a.txt
Shall I record this change? (1/4)  [ynW...], or ? for more options: y
hunk ./a.txt 1
+a
Shall I record this change? (2/4)  [ynW...], or ? for more options: y
addfile ./b.txt
Shall I record this change? (3/4)  [ynW...], or ? for more options: y
hunk ./b.txt 1
+b
Shall I record this change? (4/4)  [ynW...], or ? for more options: y
What is the patch name? creació de a i b
Do you want to add a long comment? [yn]n
Finished recording patch 'creaci� de a i b'
$ darcs what
hunk ./a.txt 1
-a
+b
hunk ./b.txt 1
-b
+a
[xan <at> rulot darcs-vs]$ darcs record
hunk ./a.txt 1
-a
+b
Shall I record this change? (1/2)  [ynW...], or ? for more options: y
hunk ./b.txt 1
-b
+a
Shall I record this change? (2/2)  [ynW...], or ? for more options: y
What is the patch name? change a for b
Do you want to add a long comment? [yn]n
Finished recording patch 'change a for b'
[xan <at> rulot darcs-vs]$ 

So what darcs record these changes as content changes and not as "renaming files" changes. If the content is
greater, then it's cheaper to have rename patch than diff patch of the contents.

Is there any reason for that?
What's is the minimal set of changes calculed between two sets of files? Is there any theory of that? I read
the theory documents and I can't see that.

Thanks in advance,
Xan
_______________________________________________
darcs-users mailing list
darcs-users <at> darcs.net
http://lists.osuosl.org/mailman/listinfo/darcs-users
Guillaume Hoffmann | 18 Nov 04:36 2014
Picon

Darcs News #109

# News and discussions

1. We are in the feature freeze period of darcs 2.10:

    - <http://lists.osuosl.org/pipermail/darcs-users/2014-November/027056.html>

2. Our two Summer of Code projects ended up two months ago. Marcio and Ale's
   code will be part of the upcoming new stable version of darcs. In case you
   missed them, here are the latest posts of Marcio for his project:

    - <http://marcioodiaz.blogspot.com.ar/2014/07/gsoc-progress-report-3-bucketed-global_23.html>
    - <http://marcioodiaz.blogspot.com.ar/2014/07/gsoc-progress-report-4-garbage.html>
    - <http://marcioodiaz.blogspot.com.ar/2014/07/gsoc-progress-report-5-starting.html>

   Ale's posts:

    - <http://alegdarcs.blogspot.com.ar/2014/07/month-of-june.html>
    - <http://alegdarcs.blogspot.com.ar/2014/07/some-week-14-19-july.html>
    - <http://alegdarcs.blogspot.com.ar/2014/07/other-week-21-26-july.html>
    - <http://alegdarcs.blogspot.com.ar/2014/08/last-few-weeks.html>

# Issues resolved (7)

issue1514 Guillaume Hoffmann
  ~ -   send --minimize-context flag for send
    -   <http://bugs.darcs.net/issue1514>

issue1624 Marcio Diaz
  ~ -   bucketed cache.
    -   <http://bugs.darcs.net/issue1624>

issue2153 Andreas Brandt
  ~ -   allow skipping backwards through depended-upon patches
    -   <http://bugs.darcs.net/issue2153>

issue2249 Mateusz Lenik
  ~ -   Rename isFile to isValidLocalPath and WorkRepoURL to WorkRepoPossibleURL
    -   <http://bugs.darcs.net/issue2249>

issue2380 Owen Stephens
  ~ -   allow darcs mv into known, but deleted in working, file
    -   <http://bugs.darcs.net/issue2380>

issue2403 Ganesh Sittampalam
  ~ -   need to avoid moving the rebase patch to the end
    -   <http://bugs.darcs.net/issue2403>

issue2409 Ganesh Sittampalam
  ~ -   implement darcs rebase apply
    -   <http://bugs.darcs.net/issue2409>

# Patches applied (118)

2014-11-07 Guillaume Hoffmann
  ~ -   directly pass around SHA1 of patches instead of string representation

2014-11-05 Ganesh Sittampalam
  ~ -   fix warnings
    -   update messages mentioning darcs optimize --patch-index
    -   make the help message for --ask-deps generic
    -   basic test of tag --ask-deps
    -   Disallow "skip all" option in interactive selection for tag --ask-deps
    -   Initial implementation of --ask-deps flag to darcs tag
    -   rename the confusing concept of 'Tag' in Darcs.Patch.Choices to 'Label'
    -   push the WhichChanges choice into the PatchSelectionContext

2014-11-05 Guillaume Hoffmann
  ~ -   correctly take into account --[no-]edit-description
    -   revert send default to --edit-description
    -   put again as verbose-only the patches pack fail message on cloning

2014-11-04 Ben Franksen
  ~ -   integrate new options subsystem

2014-10-27 Ganesh Sittampalam
  ~ -   Make the rebase changes output more user-friendly
    -   resolve conflicts
    -   add a unit test for RebaseChange
    -   resolve conflicts
    -   change/add various Show instances to ones that produce Haskell code
    -   stop using custom Show instance on PatchInfo
    -   rebase changes: delegate listConflictedFiles etc instead of
using default
    -   abstract code for treating RebaseChange as a merge
    -   resolve conflicts
    -   initial version of 'rebase changes' command
    -   introduce a new type class for patch matching
    -   resolve conflict (getChangesInfo flag changes and renaming)
    -   make getChangesInfo take specific flags only
    -   resolve conflicts (getChangesInfo renaming and refactoring)
    -   resolve conflicts (addition of diff algorithm and
getChangesInfo refactoring)
    -   make getChangesInfo take a PatchFilter instead of a Repository
    -   fix warning
    -   reduce dependencies for Named/PatchInfoAnd Patchy instances
    -   drop unnecessary UndecidableInstances
    -   Work around haskell-src-exts (and hence hlint) parse errors
    -   resolve issue2409: implement darcs rebase apply
    -   switch applyCmd to use the PatchApplier abstraction
    -   reuse the standard pullCmd for rebase
    -   generalise applyPatchesForRebase along the same lines as applyPatches
    -   bundle up checking for patch index and using it

2014-10-23 Guillaume Hoffmann
  ~ -   add --no-minimize flag to fix broken tests
    -   minimize bundle contexts by default, allow ctrl-c or --no-minimize

2014-10-16 Ganesh Sittampalam
  ~ -   pattern-match against Sealed rather than using unsafeUnseal

2014-10-15 Guillaume Hoffmann
  ~ -   --minimize for obliterate -O
    -   resolve issue1514: send --minimize-context flag for send

2014-10-21 Ganesh Sittampalam
  ~ -   resolve issue2403: need to avoid moving the rebase patch to the end
    -   Share applyPatches code between pull and apply
    -   clarify naming of applyPatches functions
    -   resolve conflict in improved 'darcs replace' message
    -   improve message from force-replace

2014-06-29 Ben Franksen
  ~ -   replaced duplicate DiffAlgorithm in Darcs.Repository.Flags
with re-export
    -   Darcs.Repository.Flags: added Show instances for all types
    -   Darcs.Repository.Flags: added Eq instance for UseIndex

2014-05-11 Owen Stephens
  ~ -   Move previously failing issue2382 test
    -   Tweak renameHelper - add trailing EOL in files and remove unnecessary $
    -   Always use MyersDiff when removing a file - the diff will be identical
    -   Use addPendingDiffToPending to add move patch and deps to pending
    -   Add addPendingDiffToPending function and comment addToPending
    -   Implement moveToDir and simpleMove with common function
    -   Fix a rename testcase marked as ok when it shouldn't be
    -   Make renameHelper much more efficient
    -   Give user more feedback when doing a move
    -   Allow diff to handle a file changing to a dir or vice-versa
    -   Prevent updateIndex failing if a file is moved to a dir or vice-versa
    -   Accept issue2382: darcs is confused if a dir is moved inplace of a file
    -   renameHelper now tests all combos of path status and path type
    -   Tidy up of Move - refactor out some common code
    -   Allow post-hoc moves to known paths
    -   renameHelper should not record all changes
    -   Resolve issue2380: allow darcs mv into known, but deleted in
working, file
    -   Tidy up checkNewAndOldFilenames in the Move command

2013-02-20 Ganesh Sittampalam
  ~ -   tweaks to rebase help strings
    -   Control pkgconfig use with a flag, defaulted to off
    -   switch curl config to use pkgconfig
    -   rename join in the PrimCanonize class to coalesce
    -   rename coalesce to coalesceRev to free up the 'coalesce' name
for the type class

2014-09-26 Aristid Breitkreuz
  ~ -   AMP for FileModMonad and second copy of "Perhaps"
    -   AMP for Perhaps and DefaultIO/TolerantIO/SilentIO/TolerantWrapper
    -   Remove faulty (>>) in second Perhaps
    -   Perhaps was not a valid Monad

2014-09-27 Andreas Brandt
  ~ -   accept issue2153: allow skipping backwards through depended-upon patches
    -   resolve issue2153: allow skipping backwards through
depended-upon patches

2014-09-27 Ganesh Sittampalam
  ~ -   fix some warnings that show up with -DHAVE_HTTP
    -   hack to appease GHC 7.8 warning about patterns that don't bind anything
    -   GHC 7.8 is a bit more picky about unused imports
    -   Fix some Windows-specific warnings
    -   switch from deprecated System.Cmd to System.Process
    -   switch from deprecated Data.AttoParsec.Char8 import
    -   respect -fwarn-as-error in hashed-storage-test and fix warnings

2014-10-21 Guillaume Hoffmann
  ~ -   optimize cache help string
    -   followup work on garbage collecting of global cache

2014-07-29 Marcio Diaz
  ~ -   Fixed file does not exist error when using darcs optimize global-cache.
    -   Garbage collection of global cache.

2014-07-31 Guillaume Hoffmann
  ~ -   restore import

2014-07-25 Ganesh Sittampalam
  ~ -   print an informative message after rollback
    -   change test to use a hostname that doesn't resolve

2014-09-28 Mateusz Lenik
  ~ -   Resolve issue2249: Rename isFile to isValidLocalPath and
WorkRepoURL to WorkRepoPossibleURL

2014-09-26 Ganesh Sittampalam
  ~ -   push CPP down into individual modules
    -   enable a few tests on Windows
    -   add a format pragma for the convert.sh and fix the test data
    -   skip the issue1739 test on Windows for now as it fails
    -   fix the utf8.sh test to reflect the issue2320 changes

2014-10-08 Guillaume Hoffmann
  ~ -   use now -h and --hash as shortcut flags to match on patch hash

2014-09-27 Ganesh Sittampalam
  ~ -   fix send-output tests to reflect changes in patch display

2014-07-24 Guillaume Hoffmann
  ~ -   enable to match on patch hash prefix and ignore case
    -   show patch hash in UI and put author and date on separate lines
    -   use makePatchID
    -   comment about fast-export forbidden tag characters

2014-09-27 Ganesh Sittampalam
  ~ -   remove the broken sigPIPE test
    -   support random 1.1
    -   support text 1.2
    -   support mtl 2.2

2014-08-25 Guillaume Hoffmann
  ~ -   remove creator-hash flag unused since annotate rewrite
    -   document pull --reorder

2014-07-09 Ale Gadea
  ~ -   Add failing test for issue2403: darcs rebase pull --reorder
crashes in src/Darcs/Patch/Depends.hs:275
    -   New option "--reorder" for the command rebase pull.
    -   New option "--reorder" for the command pull and apply.

2014-07-17 Marcio Diaz
  ~ -   Some files are not being written to the bucketed cache because there is

2014-06-24 Guillaume Hoffmann
  ~ -   fix darcs convert import, enhance help string

2014-07-16 Marcio Diaz
  ~ -   resolve issue1624: bucketed cache.
Ben Franksen | 16 Nov 02:40 2014
Picon

Latin vs. Unicode

This came up when re-factoring the options system and is of wider interest, 
I think, so I send it to darcs-users.

The issue is, I should say, limited to stuff we get from the command line, 
or from the environment, that is, patch meta-data like author, patch name, 
etc. Here, Darcs has currently built in extra support for handling 8-bit 
encodings like iso latin1. This works by casting the unicode characters in 
the Strings to Word8, which effectively calculates their value modulo 256. 
This is not noticeable as long as you use only languages with characters 
whose code points are below 256, which is the case for most European 
languages; but for Asian ones, not to speak of the other continents, this 
breaks as soon as they enter data in their native languages.

Over the last years, unicode has established itself world-wide and firmly 
and is well supported by all the major operating systems. This is why I vote 
for dropping support for older 8-bit encodings that are not unicode 
compatible, thereby allowing e.g. Chinese users to use Darcs with their 
native languages.

Cheers
Ben
--

-- 
"Make it so they have to reboot after every typo." -- Scott Adams
Eric Kow | 1 Nov 09:24 2014
Picon

hcar 2014 november draft

Hi all,

Attached is my latest draft for our 2014-11 HCAR report.
The deadline is today (sorry for the late notice), so if you spot
anything I should add, do shout :-)

http://darcs.net/hcar/Darcs.tex

Cheers,

--

-- 
Eric Kow <http://erickow.com>
Attachment (darcs-hcar.pdf): application/pdf, 100 KiB
Attachment (Darcs.tex): application/x-tex, 3849 bytes
_______________________________________________
darcs-users mailing list
darcs-users <at> darcs.net
http://lists.osuosl.org/mailman/listinfo/darcs-users
Guillaume Hoffmann | 29 Oct 18:24 2014
Picon

memory consuption of patch index in darcs 2.10

Hi,

the patch index data structure will be present in darcs 2.10. It is
currently enabled by default in the development version of darcs
(since now 2 years).

We still have a problematic issue with it, that is, when cloning big
repositories, patch index creation consumes lots of memory. In some
cases (on my computer, when darcs is built without optimizations), it
ends up with a "stack overflow" error. See
<http://bugs.darcs.net/issue2405> for more details.

If someone is interested in investigating this issue please look at:

* http://darcs.net/Using/PatchIndex
* http://darcs.net/Internals/PatchIndex
* the function [Darcs.Repository.PatchIndex.createOrUpdatePatchIndexDisk](http://hub.darcs.net/darcs/darcs-screened/browse/src/Darcs/Repository/PatchIndex.hs#445)

It would be nice to fix this by the 2.10 release, otherwise I would be
in favor of disabling it by default.

Guillaume
Guillaume Hoffmann | 23 Oct 23:01 2014
Picon

incoming darcs 2.10 feature freeze

Hi,

not before next november 3th, I'm kicking off the release process of
darcs 2.10 ( http://darcs.net/Development/ReleaseManagement ). That
is, I will clone our reviewed repository into a release-2.10
repository, and from then on the only stuff that will go in will be
bugfixes, optimizations and helpstrings.

A description about what's already in 2.10 (new features, etc.) can be
found at http://darcs.net/Releases/2.10

Guillaume

Gmane