Prehaps we've been keeping gitlib around in case someone resurrects
git support but I noticed that it doesn't appear to be referenced
anywhere:
$ grep -r gitlib .
./src/gitlib.c:#include "gitlib.h"
This patch simply removes both files.
Wed Apr 30 17:23:06 PDT 2008 Jason Dagit <[EMAIL PROTECTED]>
* remove gitlib.{c,h.in} as it appears to be unused
New patches:
[remove gitlib.{c,h.in} as it appears to be unused
Jason Dagit <[EMAIL PROTECTED]>**20080501002306] hunk ./src/gitlib.c 1
-/*
- Copyright (C) 2005 Juliusz Chroboczek
-
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2, or (at your option)
- any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program; see the file COPYING. If not, write to
- the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
- Boston, MA 02110-1301, USA.
-*/
-
-#define _GNU_SOURCE
-
-#include <stdlib.h>
-#include <stdio.h>
-#include <string.h>
-#include <stdarg.h>
-#include <time.h>
-
-#include "gitlib.h"
-
-struct git_file *
-git_read_file(const unsigned char *string)
-{
- unsigned long length;
- unsigned char *data;
- unsigned char sha1[20];
- char type[20];
- struct git_file *retval;
- int rc;
-
- rc = get_sha1_hex(string, sha1);
- if(rc != 0) {
- fprintf(stderr, "Incorrect sha1 hash %s\n", string);
- return NULL;
- }
-
- data = read_sha1_file(sha1, type, &length);
- if(data == NULL)
- return NULL;
-
- retval = malloc(sizeof(struct git_file));
- retval->data = data;
- retval->type = strdup(type);
- retval->length = length;
- return retval;
-}
-
-void
-git_file_done(struct git_file *f)
-{
- free(f->data);
- free(f->type);
- free(f);
-}
-
-unsigned char *
-git_head(char *s)
-{
- char buf[41];
- int fd, rc;
- fd = open(s, O_RDONLY);
- if(fd < 0) {
- perror("open(head)");
- return NULL;
- }
-
- rc = read(fd, buf, 41);
- if(rc < 41) {
- perror("read(head)");
- return NULL;
- }
- if(buf[40] != '\n')
- return NULL;
-
- buf[40] = '\0';
-
- return strdup(buf);
-}
-
-int
-git_update_head(char *name, char *head)
-{
- int fd, rc;
- char buf[41];
-
- if(strlen(head) != 40) {
- fprintf(stderr, "Attempt to write an incorrect head.\n");
- return -1;
- }
-
- /* HEAD must be updated in-place in case it is a symlink. */
- fd = open(name, O_CREAT | O_TRUNC | O_WRONLY, 0666);
- if(fd < 0) {
- perror("open(head)");
- return -1;
- }
-
- strcpy(buf, head);
- buf[40] = '\n';
- do {
- rc = write(fd, buf, 41);
- } while(rc < 0 && errno == EINTR);
-
- if(rc < 0) {
- close(fd);
- perror("write(head)");
- return -1;
- } else if(rc != 41) {
- close(fd);
- fprintf(stderr, "write(head): partial write.\n");
- return -1;
- }
-
- close(fd);
- return 1;
-}
-
-unsigned int
-git_default_file_mode(unsigned int treep)
-{
- return treep ? S_IFDIR : 0100644;
-}
-
-int
-git_is_tree(unsigned int mode)
-{
- return S_ISDIR(mode);
-}
-
-struct git_tree_iterator *
-git_tree_begin(unsigned char *data, unsigned long length)
-{
- struct git_tree_iterator *iter;
-
- iter = malloc(sizeof(struct git_tree_iterator));
- if(iter == NULL)
- return NULL;
-
- iter->data = data;
- iter->length = length;
- iter->offset = 0;
- return iter;
-}
-
-struct git_file_info *
-git_tree_next(struct git_tree_iterator *iter)
-{
- int len, rc, path;
- unsigned char *ppath;
- struct git_file_info *info;
-
- if(iter->offset >= iter->length)
- return NULL;
-
- len = strlen(iter->data + iter->offset);
- ppath = strchr(iter->data + iter->offset, ' ');
- path = ppath - (iter->data + iter->offset) + 1;
-
- if(ppath == NULL || path < 2 || path > 15 || path >= len ||
- iter->length < iter->offset + len + 20) {
- fprintf(stderr, "Corrupt Git tree file.\n");
- return NULL;
- }
-
- info = malloc(sizeof(struct git_file_info));
- if(info == NULL) {
- fprintf(stderr, "Couldn't malloc");
- return NULL;
- }
-
- rc = sscanf(iter->data + iter->offset, "%o", &info->mode);
- if(rc != 1) {
- fprintf(stderr, "Corrupt Git tree file -- couldn't parse mode.\n");
- return NULL;
- }
-
- info->name = malloc(len - path + 1);
- if(info->name == NULL) {
- fprintf(stderr, "Couldn't malloc");
- return NULL;
- }
- memcpy(info->name, iter->data + iter->offset + path, len - path);
- info->name[len-path] = '\0';
-
- memcpy(info->sha1, iter->data + iter->offset + len + 1, 20);
- iter->offset = iter->offset + len + 1 + 20;
-
- return info;
-}
-
-void
-git_file_info_done(struct git_file_info *info)
-{
- free(info->name);
- free(info);
-}
-
-void
-git_tree_done(struct git_tree_iterator *iter)
-{
- free(iter);
-}
-
-char *
-git_parse_time(unsigned long sec)
-{
- char buf[100];
- struct tm *tm;
- time_t time;
- size_t len;
- char *ret;
-
- time = sec;
- tm = gmtime(&time);
- len = strftime(buf, 100, "%Y%m%d%H%M%S", tm);
- ret = malloc(len + 1);
- memcpy(ret, buf, len);
- ret[len] = '\0';
- return ret;
-}
-
-#if defined __GLIBC__
-#define HAVE_TM_GMTOFF
-#ifndef __UCLIBC__
-#define HAVE_TIMEGM
-#endif
-#define HAVE_SETENV
-#endif
-
-#ifdef BSD
-#define HAVE_TM_GMTOFF
-#define HAVE_SETENV
-#endif
-
-#ifdef __CYGWIN__
-#define HAVE_SETENV
-#endif
-
-#define HAVE_TZSET
-
-/* Like mktime(3), but UTC rather than local time */
-#if defined(HAVE_TIMEGM)
-time_t
-mktime_gmt(struct tm *tm)
-{
- return timegm(tm);
-}
-#elif defined(HAVE_TM_GMTOFF)
-time_t
-mktime_gmt(struct tm *tm)
-{
- time_t t;
- struct tm *ltm;
-
- t = mktime(tm);
- if(t < 0)
- return -1;
- ltm = localtime(&t);
- if(ltm == NULL)
- return -1;
- return t + ltm->tm_gmtoff;
-}
-#elif defined(HAVE_TZSET)
-#ifdef HAVE_SETENV
-/* Taken from the Linux timegm(3) man page. */
-time_t
-mktime_gmt(struct tm *tm)
-{
- time_t t;
- char *tz;
-
- tz = getenv("TZ");
- setenv("TZ", "", 1);
- tzset();
- t = mktime(tm);
- if(tz)
- setenv("TZ", tz, 1);
- else
- unsetenv("TZ");
- tzset();
- return t;
-}
-#else
-#error no mktime_gmt implementation on this platform
-#endif
-#error no mktime_gmt implementation on this platform
-#endif
-
-unsigned long
-git_format_time(char *string)
-{
- struct tm tm;
- char *rc;
-
- rc = strptime(string, "%Y%m%d%H%M%S", &tm);
- if(rc == NULL)
- return 0;
- return mktime_gmt(&tm);
-}
-
-struct cache_entry *
-git_cache_entry(char *name)
-{
- int pos, entries;
-
- if(active_cache == NULL) {
- entries = read_cache();
- if(entries < 0) {
- fprintf(stderr, "Cannot read Git cache");
- return NULL;
- }
- }
-
- if(active_cache == NULL)
- return NULL;
-
- while(name[0] == '.' && name[1] == '/')
- name += 2;
-
- pos = cache_name_pos(name, strlen(name));
- if(pos < 0)
- return NULL;
-
- return active_cache[pos];
-}
-
-unsigned char *
-git_cache_entry_sha1(struct cache_entry *entry)
-{
- return entry->sha1;
-}
-
-unsigned int
-git_cache_entry_size(struct cache_entry *entry)
-{
- return ntohl(entry->ce_size);
-}
-
-unsigned int
-git_cache_entry_mtime(struct cache_entry *entry)
-{
- return ntohl(entry->ce_mtime.sec);
-}
-
-int
-git_validate(char *string, char *sha_b, int n)
-{
- int rc;
- char sha_a[20];
-
- rc = get_sha1_hex(string, sha_a);
- if(rc != 0) {
- fprintf(stderr, "Incorrect sha1 hash %s\n", string);
- return -1;
- }
- rc = memcmp(sha_a, sha_b, 20);
- return rc == 0;
-}
-
-struct git_file_info *
-git_write_file(char *type, char *name, unsigned mode,
- char *contents, unsigned int length)
-{
- int rc;
- char sha1[20];
- struct git_file_info *info;
-
- rc = write_sha1_file(contents, length, type, sha1);
-
- if(rc < 0) {
- fprintf(stderr, "Couldn't write Git file.\n");
- return NULL;
- }
-
- info = malloc(sizeof(struct git_file_info));
- if(info == NULL)
- return NULL;
-
- info->mode = mode;
- info->name = strdup(name);
- memcpy(info->sha1, sha1, 20);
- return info;
-}
-
-struct git_write_iterator *
-git_write_tree_begin()
-{
- struct git_write_iterator *iter;
-
- iter = malloc(sizeof(struct git_write_iterator));
- if(iter == NULL)
- return NULL;
-
- iter->count = 0;
- iter->size = 2048;
- iter->elts = malloc(iter->size * sizeof(struct git_tree_element));
- if(iter->elts == NULL) {
- free(iter);
- return NULL;
- }
-
- return iter;
-}
-
-int
-git_write_tree_next(struct git_write_iterator *iter,
- char *name, unsigned mode, char *sha1_s)
-{
- struct git_file_info *info;
- int rc;
-
- if(iter->count >= iter->size) {
- fprintf(stderr, "Sorry, only %d files in a Git tree.\n", iter->size);
- return -1;
- }
-
- iter->elts[iter->count].name = strdup(name);
- iter->elts[iter->count].mode = mode;
- rc = get_sha1_hex(sha1_s, iter->elts[iter->count].sha1);
- if(rc < 0) {
- fprintf(stderr, "Couldn't parse SHA1 string.\n");
- return -1;
- }
- iter->count++;
- return 0;
-}
-
-struct git_file_info *
-git_write_tree_done(struct git_write_iterator *iter, char *name, unsigned mode)
-{
- struct git_file_info *info;
- char *buffer, sha1[20];
- int i, j, k, l;
-
- l = 0;
- for(i = 0; i < iter->count; i++)
- l += strlen(iter->elts[i].name) + 20 + 20;
- l += 200;
-
- buffer = malloc(l);
- if(buffer == NULL)
- return NULL;
-
- j = 0;
- for(i = 0; i < iter->count; i++) {
- j += sprintf(buffer + j, "%o %s",
- iter->elts[i].mode,
- iter->elts[i].name);
- j++;
- memcpy(buffer + j, iter->elts[i].sha1, 20);
- j += 20;
- }
-
- write_sha1_file(buffer, j, "tree", sha1);
- free(buffer);
-
- for(i = 0; i < iter->count; i++)
- free(iter->elts[i].name);
- free(iter->elts);
- free(iter);
-
- info = malloc(sizeof(struct git_file_info));
- if(info == NULL)
- return NULL;
-
- info->mode = mode;
- info->name = strdup(name);
- memcpy(info->sha1, sha1, 20);
-
- return info;
-}
rmfile ./src/gitlib.c
hunk ./src/gitlib.h.in 1
-/*
- Copyright (C) 2005 Juliusz Chroboczek
-
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2, or (at your option)
- any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program; see the file COPYING. If not, write to
- the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
- Boston, MA 02110-1301, USA.
-*/
-
[EMAIL PROTECTED]@
-
-#include "cache.h"
-
-struct git_file {
- unsigned char *data;
- char *type;
- unsigned long length;
-};
-
-struct git_file_info {
- unsigned int mode;
- char *name;
- unsigned char sha1[20];
-};
-
-struct git_tree_iterator {
- unsigned char *data;
- unsigned long length;
- unsigned long offset;
-};
-
-struct git_tree_element {
- char *name;
- unsigned mode;
- char sha1[20];
-};
-
-struct git_write_iterator {
- int count;
- int size;
- struct git_tree_element *elts;
-};
-
-struct git_file *git_read_file(const unsigned char *sha1);
-void git_file_done(struct git_file *f);
-unsigned char *git_head(char *);
-int git_update_head(char*, char *);
-
-void git_file_info_done(struct git_file_info *info);
-unsigned int git_default_file_mode(unsigned int treep);
-int git_is_tree(unsigned int mode);
-
-struct git_tree_iterator *
-git_tree_begin(unsigned char *data, unsigned long length);
-struct git_file_info *git_tree_next(struct git_tree_iterator *iter);
-void git_tree_done(struct git_tree_iterator *iter);
-char *git_parse_time(unsigned long sec);
-unsigned long git_format_time(char *string);
-
-unsigned char *git_cache_entry_sha1(struct cache_entry *entry);
-unsigned int git_cache_entry_size(struct cache_entry *entry);
-unsigned int git_cache_entry_mtime(struct cache_entry *entry);
-struct cache_entry *git_cache_entry(char *name);
-
-int git_validate(char *string, char *sha_b, int n);
-
-struct git_file_info *
-git_write_file(char *type, char *name, unsigned mode,
- char *contents, unsigned int length);
-struct git_write_iterator *git_write_tree_begin(void);
-int git_write_tree_next(struct git_write_iterator *iter,
- char *name, unsigned mode, char *sha1_s);
-struct git_file_info *git_write_tree_done(struct git_write_iterator *iter,
- char *name, unsigned mode);
rmfile ./src/gitlib.h.in
Context:
[generalize the testing for external libraries.
David Roundy <[EMAIL PROTECTED]>**20080430232912]
[Use GHC instead of GCC to check for zlib availability (issue 813)
[EMAIL PROTECTED]
[resolve issue76: update docs on temp directory creation.
Eric Kow <[EMAIL PROTECTED]>**20080430175713]
[Add test for issue794.
Eric Kow <[EMAIL PROTECTED]>**20080430165251]
[doc: encourage new users to use --darcs-2 repositories.
Eric Kow <[EMAIL PROTECTED]>**20080425172110
Note that this is sans explanation (in the getting started section).
Maybe new users might be put off by the mystery flag?
]
[doc: tell users about darcs-2 handling of identical patches.
Eric Kow <[EMAIL PROTECTED]>**20080425172104
Do not bother talking about darcs-1 behaviour.
]
[add test for darcs show bug.
David Roundy <[EMAIL PROTECTED]>**20080430165425]
[fix bug in configure script wrt HTTP package.
David Roundy <[EMAIL PROTECTED]>**20080430165350]
[cleanup in ShowAuthors: "as" is a bad variable name, since it's also a haskell keyword.
David Roundy <[EMAIL PROTECTED]>**20080430161237]
[add very simple test for show authors.
David Roundy <[EMAIL PROTECTED]>**20080430161222]
[Ordered.lhs: explain acronyms
[EMAIL PROTECTED]
[Prefs.lhs: add cabal intermediates to ignore
[EMAIL PROTECTED]
Re-send, not depending on rejected patches.
]
[remove unused function ephemeral.
David Roundy <[EMAIL PROTECTED]>**20080429163057]
[remove unused compress/uncompress functions.
David Roundy <[EMAIL PROTECTED]>**20080429162552]
[remove unneeded --verify-hash flag (we always verify hashes).
David Roundy <[EMAIL PROTECTED]>**20080429162303]
[remove Stringalike module entirely.
David Roundy <[EMAIL PROTECTED]>**20080429155919]
[cut commented code (that would no longer compile).
David Roundy <[EMAIL PROTECTED]>**20080429155455]
[eliminate use of Stringalike in ReadMonad and friends.
David Roundy <[EMAIL PROTECTED]>**20080429155158]
[simplify ParserM
David Roundy <[EMAIL PROTECTED]>**20080429153800]
[make PatchInfo reading specific to PackedString.
David Roundy <[EMAIL PROTECTED]>**20080429152300]
[remove unused function test_patch.
David Roundy <[EMAIL PROTECTED]>**20080429150504]
[remove unused emptyFileContents.
David Roundy <[EMAIL PROTECTED]>**20080429150154]
[remove unused isExecutable function.
David Roundy <[EMAIL PROTECTED]>**20080429145721]
[Prefs.lhs: ignore .darcsrepo as well
[EMAIL PROTECTED]
Add it now, since we're going to get .darcsrepo at some point.
]
[Prefs.lhs: ignore zsh-compiled files and Gentoo/X leftover files
[EMAIL PROTECTED]
[Prefs.lhs: ignore .git
[EMAIL PROTECTED]
[Prefs.lhs: ignore profiling intermediate files
[EMAIL PROTECTED]
[Diff.lhs, Prefs.lhs: add docs for 4096 optimization
[EMAIL PROTECTED]
[Diff.lhs: has_bin only inspects first 4096 characters
[EMAIL PROTECTED]
This is an optimization for large files, it saves running has_funky on gigs and gigs of data when pretty much all binary files give the truth away within a few characters.
]
[fpstring.c: switch a memchr for memrchr
[EMAIL PROTECTED]
See <http://bugs.darcs.net/issue814>; memrchr speeds up is_funky quite a bit and thus helps whatsnew -s. It doesn't seem to break (any more) tests.
]
[configure: more precise error messages about packages.
Nicolas Pouillard <[EMAIL PROTECTED]>**20080424120226]
[SlurpDirectory.lhs: remove apparently pointless aliases
[EMAIL PROTECTED]
[implement primitive fixing of removal of non-empty files.
David Roundy <[EMAIL PROTECTED]>**20080428165532]
[add framework for patch-fixing repair.
David Roundy <[EMAIL PROTECTED]>**20080428153041]
[correct mmap type signatures
Jason Dagit <[EMAIL PROTECTED]>**20080428190837]
[grammar fix
Ferenc Wagner <[EMAIL PROTECTED]>**20080426173243]
[add checks for removal of non-empty files.
David Roundy <[EMAIL PROTECTED]>**20080426120904]
[remove git section from building_darcs.tex
David Roundy <[EMAIL PROTECTED]>**20080424134245
Thanks to Nicolas Pouillard for pointing this out.
]
[clean up genslurp_helper a tad.
David Roundy <[EMAIL PROTECTED]>**20080423214457
I'm removing an unneeded unsafeInterleaveIO and am reformatting some of the
indentation to make it clearer which else goes with which if.
]
[remove unneeded redundant adding of -lcurses (done by AC_SEARCH_LIBS).
David Roundy <[EMAIL PROTECTED]>**20080423214404]
[Give a clear error message when no suitable haddock is installed
[EMAIL PROTECTED]
[simplify configure a bit: if we're defining CPP symbols, no need to also use AC_SUBST.
David Roundy <[EMAIL PROTECTED]>**20080423152121]
[simplify makefile a bit.
David Roundy <[EMAIL PROTECTED]>**20080423150529]
[give proper error message when slurping fails to identify a file or directory.
David Roundy <[EMAIL PROTECTED]>**20080423141737]
[default to not coloring hunks.
David Roundy <[EMAIL PROTECTED]>**20080423141725]
[Use the lineColoring to prettify hunks with colors.
Nicolas Pouillard <[EMAIL PROTECTED]>**20080420135252]
[Add line coloring support in Printer and ColourPrinter.
Nicolas Pouillard <[EMAIL PROTECTED]>**20080420135238]
[Export Printer.(<?>).
Nicolas Pouillard <[EMAIL PROTECTED]>**20080420135208]
[Add two colors (cyan and magenta), but not use them yet.
Nicolas Pouillard <[EMAIL PROTECTED]>**20080420122811]
[Refactor a little the color handling.
Nicolas Pouillard <[EMAIL PROTECTED]>**20080420122500]
[slim down the makefile based on Gwern's changes to the configure script.
David Roundy <[EMAIL PROTECTED]>**20080423131854]
[configure.ac: export -lcurses for cabal
[EMAIL PROTECTED]
[configure.ac: export Curses as well
[EMAIL PROTECTED]
[Little style change.
Nicolas Pouillard <[EMAIL PROTECTED]>**20080420122143]
[Define unDoc as field of Doc.
Nicolas Pouillard <[EMAIL PROTECTED]>**20080416075954]
[Replace colour by color to uniformise a bit.
Nicolas Pouillard <[EMAIL PROTECTED]>**20080416074742]
[Canonize G. Branwen, P. Rockai, L. Komolodin and R. Lamers.
Eric Kow <[EMAIL PROTECTED]>**20080422152346
All anonymous patches get assigned to Gwern.
]
[doc tweak
Eric Kow <[EMAIL PROTECTED]>**20080422151420]
[resolve issue809: doc: darcs get is not lazy by default.
Eric Kow <[EMAIL PROTECTED]>**20080422150809]
[doc: darcs-2 is no longer experimental.
Eric Kow <[EMAIL PROTECTED]>**20080422150736]
[Rename ColourPrinter to ColorPrinter.
Eric Kow <[EMAIL PROTECTED]>**20080421154043
We might as well standardize on American spelling in the code.
]
[eliminate duplicate get_remote_repo in favor of list comprehensions.
David Roundy <[EMAIL PROTECTED]>**20080421145642]
[resolve issue792: Account for --remote-repo in defaultrepo code
Eric Kow <[EMAIL PROTECTED]>**20080421144023]
[Extend command_argdefaults to accept [DarcsFlag].
Eric Kow <[EMAIL PROTECTED]>**20080421143950]
[Add a --remote-repodir flag (yet unused).
Eric Kow <[EMAIL PROTECTED]>**20080421134352]
[Account for pre-existing api-doc.
Eric Kow <[EMAIL PROTECTED]>**20080421135155]
[Create the api-doc dir if it does not exist.
Eric Kow <[EMAIL PROTECTED]>**20080421134800]
[replace '{-# OPTIONS' with '{-# OPTIONS_GHC'
[EMAIL PROTECTED]
These OPTIONS pragmas use GHC-isms; best practice is to make them GHC specific if they are GHC specific.
Specifically: -fglasgow-exts is obviously GHC only. -cpp is used only by GHC AFAIK - hugs uses some hugscpp, YHC uses '--cpp' as does presumably NHC, JHC doesn't support cpp, and no idea about the others.
However, this patch omits modifying "src/Darcs/ColourPrinter.lhs", "src/Workaround.hs", and "src/win32/CtrlC.hs" because I was uncertain whether '-fno-warn-orphans', '-w', and '-ffi' are actually GHC-only.
]
[configure.ac: export -DHAVE_LIBWWW for CPP
[EMAIL PROTECTED]
[resolve issue795: Make 'darcs changes -i' behave more like other jobs.
Eric Kow <[EMAIL PROTECTED]>**20080421105247
Old behaviour:
Shall I continue to view changes?
y - do not view this patch; keep going [DEFAULT]
n - quit
v - view this patch; keep going
q - quit
New behaviour:
Shall I view this patch?
y - view this patch; keep going
n - do not view this patch; keep going [DEFAULT]
v - view this patch; keep going
q - quit
]
[Undo a false refactor in SelectChanges.
Eric Kow <[EMAIL PROTECTED]>**20080421104106
The new old code makes it clearer that text_view is only used by
'view changes'
]
[Fix pluralization of patches using English module.
David Roundy <[EMAIL PROTECTED]>**20080421121716]
[configure.ac: move HAVE_CURL around
[EMAIL PROTECTED]
The dependency was inverted; we want to set HAVE_CURL before we test for Curl pipelining.
]
[optimized get --to-match handling for darcs 1 repositories
[EMAIL PROTECTED]
[stringify.hs: rw to avoid multi-line string literal
[EMAIL PROTECTED]
The reason we want to avoid multi-line string literals is because GHC and CPP can break them quite badly if accidentally applied.
In addition, no one is going to read Context.hs - it exists solely to be compiled. So removing the multi-line business in favor of one long string which will look exactly the same in the compiled binary causes no problems. And it can fix a big one - if Context.hs can't be compiled, obviously Darcs cannot.
]
[configure.ac: restructure curl
[EMAIL PROTECTED]
We want to make sure HAVE_CURL shows up in CPP flags.
]
[configure.ac: +mention why threaded is not default/doc
[EMAIL PROTECTED]
[rearrange bytestring tests so if it's not present we're quieter.
David Roundy <[EMAIL PROTECTED]>**20080418212319]
[configure.ac: fix bytestring checking
[EMAIL PROTECTED]
This changes bytestring to be default. However it checks twice: if either --disable-bytestring is set or bytestring can't be found, it won't pass on CPP -DHAVE_BYTESTRING. So this should work for Dr. Roundy's lack of bytestring.
]
[remove unneeded check for termio.h.
David Roundy <[EMAIL PROTECTED]>**20080417172427]
[configure.ac: rm line
[EMAIL PROTECTED]
I can't even figure out how long ago Control.Monad was in a 'util' package.
]
[we don't need Darcs.Patch.Check for darcs itself.
David Roundy <[EMAIL PROTECTED]>**20080417150720]
[remove hackish attempt to set GC parameters based on available memory.
David Roundy <[EMAIL PROTECTED]>**20080416164105]
[define forM_ since it is absent on GHC 6.4.1
[EMAIL PROTECTED]
[make darcs build on win32 by conditionally compiling out a few bits that are unused or meaningless on win32
[EMAIL PROTECTED]
[Don't let other configure flags change the type witnesses
Lennart Kolmodin <[EMAIL PROTECTED]>**20080415210614
For example, when using --with-docs the type witnesses would be turned on,
while with --without-docs they would not. This patch adresses this issue.
]
[eliminate use of Haskell 98 library modules.
David Roundy <[EMAIL PROTECTED]>**20080415214217]
[add type witness declarations to Resolution
David Roundy <[EMAIL PROTECTED]>**20080415165457]
[move -cpp option into source files.
David Roundy <[EMAIL PROTECTED]>**20080415144719]
[Issue a warning when using --old-fashioned-inventory with a darcs-2 repository.
Nicolas Pouillard <[EMAIL PROTECTED]>**20080414232715]
[FastPackedString.hs: FastPackedString.hs: redefine linePS/unlinesPS
[EMAIL PROTECTED]
Turns out that my definitions were wrong - they differed and added a newline where the old FPS versions didn't. So I've rewritten the wrapper versions around ByteString, and checked them against the old ones with QuickCheck. With these fixes, a bytestring darcs seems to pass all the tests as a fps darcs.
]
[remove unused Setup.lhs.
David Roundy <[EMAIL PROTECTED]>**20080414190738]
[roll back implementation of joke oops command.
David Roundy <[EMAIL PROTECTED]>**20080414133342
Apparently it didn't actually work...
rolling back:
Tue Apr 8 07:58:56 PDT 2008 David Roundy <[EMAIL PROTECTED]>
* resolve issue786: implement oops command.
M ./src/Darcs/Commands/Tag.lhs -5 +47
M ./src/Darcs/TheCommands.lhs -1 +2
]
[just remove concatLenPS
David Roundy <[EMAIL PROTECTED]>**20080411205303
It is never used in a performance-critical situation, so I'm voting to just
trash it. I'd rather have fewer unsafe operations.
]
[FastPackedString.hs: simplify concatLenPS, although this removes its strictness properties
**20080411035327]
[FastPackedString.hs: remove wfindPS
**20080411035046
With better imports from bytestring, I believe it to be superfluous, and dangerous to leave around.
]
[FastPackedString.hs: grmmr/sp
**20080411034730]
[FastPackedString.hs: rw linesPS using ByteString split
**20080411032229]
[doc updates
[EMAIL PROTECTED]
Convert all uses of 'http://darcs.net/repos/stable' to just darcs.net, since unstable and stable were merged together, and the old URL is a 404 for darcs getting. This is a real problem, see for example <http://reddit.com/info/6ewbq/comments/c03o6d5>.
]
[fix typo in show_bug_help
Matyas Janos <[EMAIL PROTECTED]>**20080408232600]
[Raise a configure error when no Text.Regex module can be found.
[EMAIL PROTECTED]
[update README url links
[EMAIL PROTECTED]
[add a bit more debugging info to repository identification.
David Roundy <[EMAIL PROTECTED]>**20080408151912]
[resolve issue385: don't worry if we can't get local changes.
David Roundy <[EMAIL PROTECTED]>**20080408151823]
[add test for issue385.
David Roundy <[EMAIL PROTECTED]>**20080408151808]
[resolve issue786: implement oops command.
David Roundy <[EMAIL PROTECTED]>**20080408145856]
[fix URL in network test.
David Roundy <[EMAIL PROTECTED]>**20080408145407]
[fix manual bug.
David Roundy <[EMAIL PROTECTED]>**20080407191736]
[add new show bug command (hidden) to see what darcs will report if we encounter a bug.
David Roundy <[EMAIL PROTECTED]>**20080407175410]
[automatically work out the version of the stable release.
David Roundy <[EMAIL PROTECTED]>**20080407171850]
[set prefs again (they got lost on convert).
David Roundy <[EMAIL PROTECTED]>**20080407171559]
[update darcs repository URL.
David Roundy <[EMAIL PROTECTED]>**20080407164601]
[fix up website for new release.
David Roundy <[EMAIL PROTECTED]>**20080407164010]
[simplify determine_release_state.pl.
David Roundy <[EMAIL PROTECTED]>**20080407153000]
[make determine_release_state.pl use changes --count.
David Roundy <[EMAIL PROTECTED]>**20080407152347]
[add --count output option to changes.
David Roundy <[EMAIL PROTECTED]>**20080407151825]
[TAG 2.0.0
David Roundy <[EMAIL PROTECTED]>**20080407150638]
Patch bundle hash:
2333723d99061825443d72f3e66265cf25f8a98d
_______________________________________________
darcs-users mailing list
[email protected]
http://lists.osuosl.org/mailman/listinfo/darcs-users