Commit graph

3443 commits

Author SHA1 Message Date
Russ Cox
08e793723c man: more Mercurial references changed to Git
Change-Id: I940a21d67b21b5dd139cb20b9fae9595506fc5ae
2014-11-16 22:00:17 -05:00
Russ Cox
0edb04685b codereview: make commit -a the default; warn about uncommitted changes at upload
also update README.md for github

Change-Id: I7d578a902ffed7f6d69780721e29a1972b6f6992
2014-11-16 21:48:16 -05:00
Russ Cox
294f22a470 README: rename to README.md, add markdown for github
Change-Id: I2e644aa2d693692f33d017c00367a734039532f1
2014-11-16 21:36:20 -05:00
Russ Cox
32f3c4ade4 codereview: fix a few bugs
Change-Id: Ifd9fda05e15c9e1e106ffd4e30e1dafe8423cdf4
2014-11-16 21:28:05 -05:00
Russ Cox
95fee1d42e all: update for Git
- rewrite .gitignore to use git patterns
- mv hg(1) to git(1) and rewrite
- add lib/git/commit-msg.hook
- add skeleton codereview script
- update codereview(1)

Change-Id: I061cd8e4de77ebbd6037a7c5d1582cd1d986f62f
2014-11-16 21:21:28 -05:00
Russ Cox
58d8f6c7ba Delete .cvsignore. It is time.
Change-Id: I3ed51b54252307f387f71955bbf547928bf26b5b
2014-11-12 17:38:21 -05:00
Russ Cox
4bd5168c6f Convert .hgignore to .gitignore. 2014-11-10 23:49:47 -05:00
Russ Cox
de00349cf7 Remove .hgtags. 2014-11-10 23:49:47 -05:00
David du Colombier
734ca6356b INSTALL: fix path of quote1 and quote2
Thanks to Akshat Kumar for reporting this issue.

LGTM=seed, rsc
R=rsc, seed
https://codereview.appspot.com/173770043
2014-11-07 22:52:31 +01:00
David du Colombier
6c7443a653 fix clang 3.4 warnings and ignore uninteresting ones
fixed warnings:
src/cmd/fossil/disk.c:37:14: warning: use of GNU 'missing =' extension in designator [-Wgnu-designator]
src/cmd/fossil/disk.c:38:14: warning: use of GNU 'missing =' extension in designator [-Wgnu-designator]
src/cmd/fossil/disk.c:39:14: warning: use of GNU 'missing =' extension in designator [-Wgnu-designator]
src/cmd/fossil/disk.c:40:13: warning: use of GNU 'missing =' extension in designator [-Wgnu-designator]
src/cmd/fossil/disk.c:41:14: warning: use of GNU 'missing =' extension in designator [-Wgnu-designator]
src/libndb/ndbreorder.c:41:55: warning: for loop has empty body [-Wempty-body]

ignored warnings:
src/cmd/acid/dbg.y:393:9: warning: array index -1 is before the beginning of the array [-Warray-bounds]
src/cmd/bc.y:1327:9: warning: array index -1 is before the beginning of the array [-Warray-bounds]
src/cmd/bc.y:1327:9: warning: array index -1 is before the beginning of the array [-Warray-bounds]
src/cmd/grep/grep.y:420:9: warning: array index -1 is before the beginning of the array [-Warray-bounds]
src/cmd/grep/grep.y:420:9: warning: array index -1 is before the beginning of the array [-Warray-bounds]
src/cmd/hoc/hoc.y:692:9: warning: array index -1 is before the beginning of the array [-Warray-bounds]
src/cmd/hoc/hoc.y:692:9: warning: array index -1 is before the beginning of the array [-Warray-bounds]
src/cmd/lex/parser.y:886:9: warning: array index -1 is before the beginning of the array [-Warray-bounds]
src/cmd/rc/syn.y:303:9: warning: array index -1 is before the beginning of the array [-Warray-bounds]
src/cmd/units.y:1003:9: warning: array index -1 is before the beginning of the array [-Warray-bounds]
src/libregexp/regcomp.c:19:16: warning: variable 'reprog' is not needed and will not be emitted [-Wunneeded-internal-declaration]

LGTM=rsc
R=rsc
https://codereview.appspot.com/158250043
2014-10-21 14:22:12 +02:00
Russ Cox
2763a6d832 venti/copy: fix bug writing directories that zero truncate
Found by nwf.

TBR=rsc
https://codereview.appspot.com/162860045
2014-10-21 07:25:13 -04:00
Russ Cox
72197f89d4 col: import from plan 9, by popular demand
TBR=rsc
https://codereview.appspot.com/158240043
2014-10-20 20:41:41 -04:00
David du Colombier
fd3496d3ef 9l: link with -lresolv on Linux
LGTM=rsc
R=rsc
https://codereview.appspot.com/136520044
2014-10-20 22:21:43 +02:00
David du Colombier
738e890b19 vbackup: fix compilation on NetBSD (thanks Álvaro Jurado)
On NetBSD 5.0 and upper, mount() require
data_len as a fifth argument.

LGTM=rsc
R=rsc
CC=elbingmiss
https://codereview.appspot.com/111600043
2014-08-06 14:43:21 +02:00
Aram Hăvărneanu
a9e0d2b6c4 CONTRIBUTORS: add Aram Hăvărneanu
LGTM=rsc
R=rsc
CC=plan9port-dev
https://codereview.appspot.com/119500043
2014-08-06 15:37:41 +03:00
Aram Hăvărneanu
c0ae8e760c g: search in *.s files
LGTM=rsc
R=rsc
CC=plan9port-dev
https://codereview.appspot.com/115100043
2014-08-06 15:36:38 +03:00
Russ Cox
f5ae255cc3 mc: use $termprog to identify 9term
TBR=rsc
https://codereview.appspot.com/112890043
2014-07-09 10:26:09 -04:00
David du Colombier
32c6e78c6c upas: fix nil pointer dereference
R=rsc
https://codereview.appspot.com/92650043
2014-06-05 18:46:28 +02:00
Russ Cox
c99867c9e0 upas/common: rename aux to auxx
TBR=rsc
https://codereview.appspot.com/107760043
2014-06-03 14:30:52 -04:00
Russ Cox
fbe3f344c1 build: rename " and "" to quote1 and quote2 for hg
They'll be copied back during installation
but then hg doesn't have to create those files
on systems that have trouble with them.

TBR=rsc
https://codereview.appspot.com/105800043
2014-06-03 14:29:06 -04:00
Russ Cox
50ababbd55 acme: fix bufread crash due to typing-point scrolling
Acme tracks the most recent typing insertion point and
the home and end keys stop there on their way
up to the top or down to the bottom of the file.
That point should be iq1, and it should be adjusted
properly so that it's always between 0 and t->file->b.nc inclusive.
(This is all code from an external contributor, years old at this
point but new since Plan 9.)

Somehow, sometimes iq1 ends up a little beyond b.nc,
and when passed to textbacknl it crashes acme in bufread.
I can't see how that can happen but if it does, avoid the crash.

It's tempting to pull the insertion point code out entirely
but this is a little less invasive and should fix things for now.

TBR=rsc
https://codereview.appspot.com/107730043
2014-06-03 00:16:48 -04:00
Russ Cox
6400c9f20c acme: increase timer resolution to 10ms
We ran for a long time with 10ms kernel resolution,
so 10ms user space resolution here should be fine.
Some systems actually provide 1ms sleeps, which
makes this polling use a bit more cpu than we'd like.
Since the timers are for user-visible things, 10ms should
still be far from noticeable.

Reduces acme's cpu usage on Macs when plumber is missing
(and plumbproc is sleeping waiting for it to appear).

LGTM=aram, r
R=r, aram
https://codereview.appspot.com/99570043
2014-06-03 00:09:29 -04:00
Russ Cox
113ea95f7b undo CL 69070045 / 8539a916d98a
This breaks ^C in win windows, as expected.
People use ^C, win expects and handles ^C,
so I don't think we can just take it away.

I've noticed that it is broken but assumed my ssh
was screwed up.

If you want to make WindowsKey+C,X,V do the
operations, by analogy with command+C,X,V
on Mac, that's fine with me.

««« original CL description
acme: copy/cut/paste with ctl+c,x,v

LGTM=rsc
R=rsc
CC=plan9port.codebot
https://codereview.appspot.com/69070045

»»»

TBR=rsc
CC=burns.ethan, r
https://codereview.appspot.com/96410045
2014-05-19 09:39:34 -04:00
David du Colombier
bae34df843 upas: fix warnings
smtp.c:232: warning: comparison with string literal results in unspecified behavior
smtp.c:244: warning: comparison with string literal results in unspecified behavior
marshal.c:1179: warning: variable ‘err’ set but not used

LGTM=rsc
R=rsc
https://codereview.appspot.com/93290043
2014-05-15 06:28:54 +02:00
David du Colombier
954e03ccfe libndb: add AUTOLIB(resolv)
LGTM=rsc
R=rsc
https://codereview.appspot.com/97370043
2014-05-15 06:28:05 +02:00
Russ Cox
45f8ba5414 acme: fix two flush bugs in new log file
TBR=rsc
https://codereview.appspot.com/95010048
2014-05-05 22:28:03 -04:00
Russ Cox
4a3fb87264 acme: add log file in acme root directory
Reading /mnt/acme/log reports a log of window create,
put, and delete events, as they happen. It blocks until the
next event is available.

Example log output:

8 new /Users/rsc/foo.go
8 put /Users/rsc/foo.go
8 del /Users/rsc/foo.go

This lets acme-aware programs react to file writes, for example
compiling code, running a test, or updating an import block.

TBR=r
R=r
https://codereview.appspot.com/89560044
2014-04-30 12:14:29 -04:00
Russ Cox
833216fef8 acme: add comment for aligned writes
TBR=r
https://codereview.appspot.com/89510044
2014-04-19 13:44:06 -04:00
Russ Cox
1d2c3c3945 acme: use buffered i/o to write file
Bakul Shah has observed corrupted files being written
when acme writes over osxfuse to sshfs to a remote file system.
In one example we examined, acme is writing an 0xf03-byte
file in two system calls, first an 0x806-byte write and then a 0x6fd-byte
write. (0x806 is BUFSIZE/sizeof(Rune); this file has no multibyte UTF-8.)

What actually ends up happening is that an 0x806-byte file is written:

        0x000-0x6fd contains what should be 0x806-0xf03
        0x6fd-0x7fa contains zeros
        0x7fa-0x806 contains what should be 0x7fa-0x806 (correct!)

The theory is that fuse or sshfs or perhaps the remote file server is
mishandling the unaligned writes. acme does not seem to be at fault.

Using bio here will make the writes align to 8K boundaries,
avoiding the bugs in whatever underlying piece is broken.

TBR=r
https://codereview.appspot.com/89550043
2014-04-19 10:09:22 -04:00
Russ Cox
d213189122 acme: fix Get of dir in nameless window (thanks Colton Lewis)
TBR=r
https://codereview.appspot.com/89390043
2014-04-18 14:03:46 -04:00
Shenghou Ma
2f902c4138 dist/main.html: update supported systems and commit log link.
LGTM=rsc
R=rsc
https://codereview.appspot.com/72340043
2014-03-25 23:23:10 -04:00
Shenghou Ma
c9ed9e13bf man/man1/0intro.1: update supported systems.
LGTM=rsc
R=rsc
https://codereview.appspot.com/71070050
2014-03-14 10:10:20 -04:00
Ethan Burns
4030a6c905 acme: copy/cut/paste with ctl+c,x,v
LGTM=rsc
R=rsc
CC=plan9port.codebot
https://codereview.appspot.com/69070045
2014-03-13 18:48:41 -04:00
Russ Cox
219cf22d68 acme, sam: handle >1GB files correctly
TBR=rsc
https://codereview.appspot.com/74060043
2014-03-13 18:46:28 -04:00
Shenghou Ma
e78ed7a67b INSTALL: fix architecture detection on Solaris.
And uses gcc for i386 and x86_64.

LGTM=rsc
R=rsc
https://codereview.appspot.com/69860044
2014-03-05 16:43:20 -05:00
David du Colombier
63002b3e5a fix gcc 4.8 warnings
LGTM=rsc
R=rsc
https://codereview.appspot.com/33240044
2014-03-03 22:30:34 +01:00
David du Colombier
24b8994d3d fossil: fix p9p changes on view
LGTM=rsc
R=rsc
https://codereview.appspot.com/31130043
2014-03-03 22:23:07 +01:00
Shenghou Ma
20035ed43c all: DragonFly port.
Fix compilation problems, libdraw still doesn't work right yet.

LGTM=rsc
R=rsc
https://codereview.appspot.com/67820046
2014-02-27 23:17:47 -05:00
Shenghou Ma
db800afb4e codereview: sync from Go.
LGTM=rsc
R=rsc
https://codereview.appspot.com/67820044
2014-02-24 01:21:48 -05:00
Rob Kroeger
66ad987412 mac/Plumb: add URL scheme to Info.plist
LGTM=rsc
R=rsc
CC=plan9port.codebot
https://codereview.appspot.com/40780044
2014-01-22 13:43:39 -05:00
Russ Cox
042a069825 devdraw: clear altdown on focus out (thanks Ethan Burns)
TBR=rsc
https://codereview.appspot.com/53820044
2014-01-22 13:41:13 -05:00
Russ Cox
baf127ad04 INSTALL: diagnose missing gcc on Darwin
TBR=rsc
https://codereview.appspot.com/55700043
2014-01-22 11:23:19 -05:00
Jonathan Cast
f9781769d5 keyboard: add more sequences, from existing ones or RFC 1345
R=rsc
CC=plan9port.codebot
https://codereview.appspot.com/43990046
2014-01-06 22:19:32 -05:00
David du Colombier
b29ebaab99 fossil: fix remaining warnings
R=rsc
https://codereview.appspot.com/15100044
2013-10-23 22:10:31 +02:00
Rob Pike
5a69e405fc acme: scroll a directory window when navigating if:
- the cursor is on the last line
        - the navigation would put the cursor over the tag of the following text

R=rsc
CC=smckean83
https://codereview.appspot.com/15280045
2013-10-22 16:47:48 -07:00
David du Colombier
075c3bdc54 xd: fix build by declaring swizz8
R=rsc
https://codereview.appspot.com/13982043
2013-09-26 22:34:05 +02:00
David du Colombier
25f54d6f52 fossil: cleanup mkfile
R=rsc
https://codereview.appspot.com/13988043
2013-09-26 22:33:27 +02:00
David du Colombier
f92e70dc11 fossil: create directory
R=rsc
https://codereview.appspot.com/13984043
2013-09-26 22:32:37 +02:00
David du Colombier
68beda2144 fossil: import conf.rc
R=rsc
https://codereview.appspot.com/13983043
2013-09-26 22:31:57 +02:00
David du Colombier
3fcc209df9 fossil: cast Qid.vers, Dir.mode and Qid.mtime to u32int (thanks Tim Kack)
R=rsc
https://codereview.appspot.com/13981043
2013-09-26 22:31:11 +02:00