Max Battcher | 1 Apr 2008 22:21
Favicon
Gravatar

ANN: Darcsforge Documentation

I took some time off of thinking about various other work projects to
put some documentation into my Darcsforge project, because it was
asked for.  (Darcsforge is my humble collection of Django applications
for Darcs-based project management, with an overly idealistic name.)
Admittedly this is very thin work in progress documentation, but
documentation nonetheless:

http://repos.worldmaker.net/darcsforge/main/docs/.build/html/index.html

Eventually I'll move the documentation to a better URL and maybe work
it better into my general theme...

I'm still quite a bit away from maintaining backwards compatibility
with the database schema as I make changes (in fact, I have a few
major changes already in mind), but at least now there are a few signs
on what might be generally useful bits and pieces to help you stay
away from the dragons in the source code.

--

-- 
--Max Battcher--
http://www.worldmaker.net/
Stefan Monnier | 1 Apr 2008 23:46
Picon

Use diff3 for external merges


The doc mentions many other tools, but not the mother of all merge
tools, diff3.  So here's what I use:

   ALL external-merge diff3-darcs %o -Am %1 %a %2

together with a script `diff3-darcs' which does:

   #!/bin/sh
   output="$1"; shift
   diff3 "$ <at> " >"$output"
   [ "$?" -le 1 ]

Hopefully, this can make it into the doc?

I wish DaRCS was a bit more clever, so that an external script
isn't necessary.  E.g. if the command line doesn't mention "%o", assume
the output will go to stdout (the other problem is that diff3 returns
a status of 1 in case there were conflicts, and 2 in case of errors).

Of course, even better would be for DaRCS's builtin merge tool to use
standard diff3 markers rather than reinvent the wheel.

        Stefan
Mateusz Czaplinski | 2 Apr 2008 14:07
Picon

Problem downloading the main darcs repository

Hello,
I have a problem downloading the http://darcs.net/repo/unstable-hashed
repository. I'm using the latest win32 darcs, via
  darcs get http://darcs.net/repo/unstable-hashed
(also tried wit --lazy).
The result is:
  darcs failed:  Not a repository:
http://darcs.net/repo/unstable-hashed (failed to fetch:
http://darcs.net/repo/unstable-hashed/_darcs/inventory ExitFailure 1)
I think that might possibly be some problem with the CGI script, as
I'm also unable to browse the repo via a web browser?
Btw, I've also tried to get the http://darcs.net/repos/unstable repo
via simple 'darcs get', and it resulted in some wgets executed, and
then:

Downloaded: 5,448,842 bytes in 5501 files
Unapplicable patch:
Sun Oct 31 13:04:47 îrodkowoeuropejski czas stand. 2004  Mark Stosberg
<mark <at> summersault.com>
  * homepage overhaul: new text and design, and temp. logo

darcs failed:  binary patch to ./logo.png couldn't apply.

Could someone tell me what's going on?
Thanks,
Mateusz Czapliński
zooko | 2 Apr 2008 14:40
Gravatar

http://tools.darcs.net/trac/darcs-tools

Folks:

I've updated the wiki here, indicating which tools I consider to be  
candidates for inclusion in the new "darcs-tools" repository:

http://tools.darcs.net/trac/darcs-tools

Please feel free to jump in and add any other tools that need a home.

I am trying to synchronize this page with http://wiki.darcs.net/ 
DarcsWiki/RelatedSoftware , but I can't log in to wiki.darcs.net at  
the moment, so I can't put a pointer there to http://tools.darcs.net/ 
trac/darcs-tools .  If someone else could do that, or help me figure  
out my account on wiki.darcs.net, that would be nice.

Regards,

Zooko
zooko | 2 Apr 2008 14:44
Gravatar

Re: Problem downloading the main darcs repository


On Apr 2, 2008, at 6:07 AM, Mateusz Czaplinski wrote:
> Hello,
> I have a problem downloading the http://darcs.net/repo/unstable-hashed
> repository. I'm using the latest win32 darcs,

I'm not sure what "the latest win32 darcs" is.  Could you show me the  
URL that you downloaded it from, and what it says in response to  
"darcs --exact-version"?

>   darcs get http://darcs.net/repo/unstable-hashed
> (also tried wit --lazy).
> The result is:
>   darcs failed:  Not a repository:

This sounds like what darcs-1 says if you ask it to use a darcs-2- 
hashed-format repository.  Perhaps your version of darcs is darcs-1.

> Downloaded: 5,448,842 bytes in 5501 files
> Unapplicable patch:
> Sun Oct 31 13:04:47 îrodkowoeuropejski czas stand. 2004  Mark Stosberg
> <mark <at> summersault.com>
>   * homepage overhaul: new text and design, and temp. logo
>
> darcs failed:  binary patch to ./logo.png couldn't apply.

This is issue687:

http://bugs.darcs.net/issue687

(Continue reading)

Mateusz Czaplinski | 2 Apr 2008 15:13
Picon

Re: Problem downloading the main darcs repository

On Wed, Apr 2, 2008 at 2:44 PM, zooko <zooko <at> zooko.com> wrote:
>
>  On Apr 2, 2008, at 6:07 AM, Mateusz Czaplinski wrote:
>
> > Hello,
> > I have a problem downloading the http://darcs.net/repo/unstable-hashed
> > repository. I'm using the latest win32 darcs,
> >

argh, problems arose because I wrote .../repo/... and should write:
.../repos/... .............
seems to be working OK now
sorry for trouble :/

Mateusz Czapliński
Pekka Pessi | 3 Apr 2008 00:33
Picon

Re: Force darcs to treat a file as binary? (or not)

2008/3/24, Allan Lyons <allan <at> rahab.wycliffe.ca>:
> On Mon, Mar 24, 2008 at 08:24:40AM -0400, Jason Purdy wrote:
>  > There's a preference file in your repository itself called 'binaries',
>  > which contains a list of regular expressions to match file names.
>  >
>  > /path/to/repo/_darcs/prefs/binaries
>
>  In that case, can the reverse be done and force darcs to treat a
>  specific file as NOT binary when it matches one of those reg
>  expressions.  Assume also that there are other files that match the same
>  reg ex that ARE supposed to be treated as binary.

As far as I know, there is no easy way to do that.

However, you can create file with an another name, like, text.exe.not,
and then after recording the patch, use

darcs mv text.exe.not text.exe && darcs amend text.exe

--

-- 
Pekka.Pessi mail at nokia.com
Shmulik Regev | 7 Apr 2008 17:10
Picon

Darcs with cygwin error - "realdarcs.exe: do_stat: does not exist (No such file or directory)"

I'm trying to run darcs with Cygwin (the standard 1.0.9 binary distribution) but alas I'm unable to recursively add files/directories. This is what I get

$ darcs add -r *
realdarcs.exe: do_stat: does not exist (No such file or directory)

I tried adding the verbose flag but it provided no extra information.

Any ideas?


Cheers,
Shmul

_______________________________________________
darcs-users mailing list
darcs-users <at> darcs.net
http://lists.osuosl.org/mailman/listinfo/darcs-users
James Hunsaker IV | 7 Apr 2008 21:15

Windows Curl Problem

I am using Darcs on Cygwin but cannot get my repo to download:

$ curl -x proxy.company.com:80 --digest -u testuser:testpass -k -s -f
https://www.domain.org/repos/Project/_darcs/inventory
[Initial import.
Some User**20080405091154] 

$ export DARCS_GET_HTTP="curl -x proxy.company.com:80 --digest -u
testuser:testpass -k -s -f"

$ darcs get https://www.domain.org/repos/Project
Invalid repository:  https://www.domain.org/repos/Project

darcs failed:  Failed to download URL
https://www.domain.org/repos/Project/_darcs/inventory : libcurl error
code: 28

Using the same curl command without "--digest -u testuser:testpass -k"
allows me to "darcs get http://darcs.net/repos/stable" through the proxy
just fine.

Any ideas?

Thanks
zooko | 8 Apr 2008 02:48
Gravatar

Re: Darcs with cygwin error - "realdarcs.exe: do_stat: does not exist (No such file or directory)"


On Apr 7, 2008, at 8:10 AM, Shmulik Regev wrote:
> I'm trying to run darcs with Cygwin (the standard 1.0.9 binary  
> distribution) but alas I'm unable to recursively add files/ 
> directories. This is what I get
>
> $ darcs add -r *
> realdarcs.exe: do_stat: does not exist (No such file or directory)

The bash shell expands this to

$ darcs add -r foo bar baz quux

before the darcs executable sees it.  Maybe if you write "darcs add - 
r foo bar baz quux" yourself instead of writing "darcs add -r *" then  
you can manipulate the set of files on the command-line in order to  
learn more about the problem.

Please write back to this list with what you find.

Regards,

Zooko

Gmane