Dirkjan Ochtman <dirkjan@ochtman.nl> [Sun, 29 Jun 2008 15:23:09 +0200] rev 6784
hgweb: all protocol functions have become generators
Using the write() callable supplied by the start_response() call is
frowned upon by the WSGI spec, returning an iterable over the content chunks
is the recommended way. Be aware, though: returning many small chunks will
slow down responses, because the server has to flush each chunk separately.
Dirkjan Ochtman <dirkjan@ochtman.nl> [Sun, 29 Jun 2008 13:16:25 +0200] rev 6783
templater: make a template a string-only iterator
Dirkjan Ochtman <dirkjan@ochtman.nl> [Sun, 29 Jun 2008 14:20:01 +0200] rev 6782
streamclone yields chunks instead of accepting a file-like object
Dirkjan Ochtman <dirkjan@ochtman.nl> [Sun, 29 Jun 2008 11:34:36 +0200] rev 6781
hgweb: protocol functions take repo instead of web
This makes it much easier for implementers of hgweb alternatives to simply
call into protocol functions after setting up a repo and a request.
Dirkjan Ochtman <dirkjan@ochtman.nl> [Sun, 29 Jun 2008 11:35:08 +0200] rev 6780
hgweb: move capabilities calculation back into hgweb.protocol
Dirkjan Ochtman <dirkjan@ochtman.nl> [Sun, 29 Jun 2008 11:35:06 +0200] rev 6779
hgweb: centralize permission checks for protocol commands
Consistently enforces authorization checks set up in hgrc up front, so that
the actual commands don't have to worry about them and implementers of
hgweb alternatives can easily implement their own permission checks.
Dirkjan Ochtman <dirkjan@ochtman.nl> [Sun, 29 Jun 2008 11:02:19 +0200] rev 6778
tests: add some tests for web.allowpull configurations
Dirkjan Ochtman <dirkjan@ochtman.nl> [Sat, 28 Jun 2008 15:28:43 +0200] rev 6777
hgweb: protocol requests are processed immediately
This makes separation of interface/webcommands and protocol easier and will
make http repos slightly faster because there's less overhead.
Dirkjan Ochtman <dirkjan@ochtman.nl> [Sat, 28 Jun 2008 09:28:01 +0200] rev 6776
merge with mpm
Brendan Cully <brendan@kublai.com> [Thu, 26 Jun 2008 13:37:47 -0700] rev 6775
coal: include current node in log, graph menu links
Dirkjan Ochtman <dirkjan@ochtman.nl> [Thu, 26 Jun 2008 13:45:39 +0200] rev 6774
hgweb: move shortcut expansion to request instantiation
Matt Mackall <mpm@selenic.com> [Fri, 11 Jul 2008 18:46:02 -0500] rev 6773
fix iso date help
Matt Mackall <mpm@selenic.com> [Fri, 11 Jul 2008 18:46:02 -0500] rev 6772
context: simplify parents code
Matt Mackall <mpm@selenic.com> [Fri, 11 Jul 2008 18:46:02 -0500] rev 6771
workingctx: add __contains__ method
Matt Mackall <mpm@selenic.com> [Fri, 11 Jul 2008 18:46:02 -0500] rev 6770
status: various cleanups
- rename lookup to cmp for formatting reasons
- reduce nesting level of fixup code
- sort fixup results
- group comparison cases in a separate clause
- make list initialization simpler
- delay flag lookup for working directory
- sort removed list in comparison
- avoid sorting already sorted lists
Matt Mackall <mpm@selenic.com> [Fri, 11 Jul 2008 18:46:02 -0500] rev 6769
status: use contexts
Matt Mackall <mpm@selenic.com> [Fri, 11 Jul 2008 18:46:02 -0500] rev 6768
hgk: fix parent breakage
Matt Mackall <mpm@selenic.com> [Fri, 11 Jul 2008 18:46:02 -0500] rev 6767
dirstate: simplify/optimize path checking
- add fast _finddirs function
- remove recursion from incpath/decpath
- split changepath into addpath/droppath
- change relax arg to check
- move incpathcheck logic into addpath
- move incpath into addpath
- move decpath into droppath
- inline code in self._dirs creation
Matt Mackall <mpm@selenic.com> [Fri, 27 Jun 2008 21:45:16 -0500] rev 6766
acl: refactoring
- undo class structure
- make buildmatch return None for no function
- use contexts properly
- simplify check loop
Matt Mackall <mpm@selenic.com> [Fri, 27 Jun 2008 19:27:00 -0500] rev 6765
manifest: make checkforbidden take a list
Matt Mackall <mpm@selenic.com> [Fri, 27 Jun 2008 19:25:48 -0500] rev 6764
context: add walk method
Matt Mackall <mpm@selenic.com> [Fri, 27 Jun 2008 18:44:43 -0500] rev 6763
context: add __int__ and hex methods
Matt Mackall <mpm@selenic.com> [Fri, 27 Jun 2008 18:28:45 -0500] rev 6762
util: add sort helper
Matt Mackall <mpm@selenic.com> [Fri, 27 Jun 2008 14:53:30 -0500] rev 6761
remove: work directly off status
This allows us to use a single directory walk and to trivially ignore
unknown files. The resulting code is also easier to follow.