Commits

Show all
Author Commit Message Labels Comments Date
Yuya Nishihara
hg: don't always fail to read patches.queue file Since 'status_filename' did not have enough space, read_first_line() never succeeded. Even worse, the test case did not fail because patches/status and patches-foo/status are the same.
Greg Ward
hg: rename a function; misc cosmetic changes.
Greg Ward
tests: take advantage of new die function in common.sh.
Greg Ward
Add test-hg for tests that can run and use a real hg.
Greg Ward
Document need for GNU make.
Greg Ward
Fix inaccurate comment.
Greg Ward
common: change get_till_eol() to just copy nchars if there is no newline. This is more consistent and much simpler to implement.
Yuya Nishihara
makefile: fix incompatibility with BSD install install -t is a GNU extension. Thanks to Ian Alexander Wood.
Greg Ward
Document most of the functions in common.c.
Greg Ward
Move get_till_eol() from fossil.c to common.c and document it.
Greg Ward
fossil: fix potential use of uninitialized string. If 'fossil status' forgets to print a newline after "tags:", then get_till_eol() would simply not bother to copy any bytes into dest, which is an uninitialized char array (random junk). Fix by always terminating dest -- make it an empty string if no newline in src.
Greg Ward
fossil: fix buffer overflow. If fossil prints >= 2048 bytes, fread() would have read all of them and filled up buf. Then passing that buf to strbuf() is bad news, since strbuf() expects a NUL-terminated string. Fix by reading at most 2047 bytes and terminating the string.
Greg Ward
fossil: remove an unnecessary else clause (reduce indentation).
Greg Ward
fossil: fix style: wrap comments, whitespace, line breaks.
Jan Spakula
Add support for fossil. It's not ideal in that it calls the 'fossil' binary even for basic info; but since fossil stores all info in sqlite databases, the only other options were either to link against some sqlite library or implement basic sqlite support. I didn't want to do any of these; moreover, 'fossil' binary is relatively small and only links against basic libs.
Yuya Nishihara
hg: add support for multiple patch queues, introduced in Mercurial 1.6.
Greg Ward
setup-git: better way to set author (and committer too).
Greg Ward
setup-git: set author explicitly when committing
Greg Ward
tests: go ahead and run test-git, but exit if git not found.
Greg Ward
Fix memory corruption bug -- was strcat()ing into a dirty array.
Greg Ward
Move a misplaced debug() call.
Greg Ward
Make probe for CVS more picky: CVS/Entries must be a file. This is mainly because I keep getting strange results on OS X with a case-insensitive filesystem, where the tests create a "cvs" subdirectory which fools the simple isdir("CVS") probe.
Greg Ward
Fix so the tests run on OS X (simple shell script porting).
Yuya Nishihara
makefile: add rule to install executable
Armin Ronacher
Fixed my name :)
Armin Ronacher
Don't use strndup(): it is a GNU extension not available on other systems. In particular, OS X does not have it. Fixes bug #1.
Greg Ward
Switch to GPL; add copyright statement to source files. Yuya's little revlog parser was based on reading Mercurial's source code, so it could be considered a derived work. Using GPL to be safe rather than sorry.
Greg Ward
More README tweaks.
Greg Ward
Print + for uncommitted changes, not !. (This is inspired by "hg identify", and because "hg status" and "svn status" both use "!" to mean missing files.)
Greg Ward
Beef up README.
  1. Prev
  2. Next