Commit Graph

6782 Commits

Author SHA1 Message Date
Patrick Mezard
5d042582b9 Add test for case folding issues 2008-07-11 14:40:44 +02:00
Paul Moore
ab028fc78a Sort removes first when applying updates (fixes issues 750 and 912)
This change ensures that removes happen first in applyupdates(). This avoids
issues where we try to make a case-only rename of a file on a case insensitive
system. Without this patch, the add of the new name happens before the remove
of the old one - which results in the file not existing, as the two names are
effectively the same.

With the patch, the old name gets removed then the new one gets added, which
is always safe.
2008-07-01 17:59:31 +01:00
byron@base2.cc
5bb9254434 Added missing --config global option to zsh_completion.
The global options --encoding and --encodingmode where also added.
Without these options some functionality breaks.  Also added basic
completion for config items for the --config option.
2008-07-03 20:53:14 -07:00
Andreas Hartmetz
0d8960082a Document password syntax in repositories URLs 2008-07-07 09:33:54 +02:00
Patrick Mezard
9cb9c8c81f Merge with crew-stable 2008-07-07 09:31:32 +02:00
Patrick Mezard
42c2e73f4f mq: fix qrefresh losing copy information (issue 1134) 2008-07-07 09:16:09 +02:00
Patrick Mezard
3035d96fcf hgk: ctx.parents() problem introduced by 781913965579 2008-07-05 14:35:36 +02:00
Patrick Mezard
71bb2f4e7d Fix tests failures introduced by 95f45587a770 2008-07-05 14:35:34 +02:00
Brendan Cully
2aef8dbc09 Check that git patches only touch files under root 2008-06-25 14:13:20 -07:00
Martin OConnor
c79872ed51 Updating Copyright dates in Windows Installer 2008-07-01 23:41:47 +01:00
Paul Moore
d7368594b4 Force email package to be loaded in py2exe
With Python 2.5, the email package is not fully loaded by py2exe, due to
dynamic imports which are not found by modulefinder. This breaks the patchbomb
extension. This patch forces the whole email package to be included so that
the dynamic imports work as expected.
2008-07-01 20:17:11 +01:00
Frank Kingswood
9871c3ea34 convert: add documentation for CVS source 2008-06-24 10:40:41 +01:00
Dirkjan Ochtman
1599d4d765 merge another backout 2008-07-02 12:27:57 +02:00
Dirkjan Ochtman
0bf39aa189 Backed out changeset b6b16fec2a60 (incorrect Content-Length on Windows) 2008-07-02 12:02:33 +02:00
Dirkjan Ochtman
ca8485640e merge the backout head 2008-07-02 11:31:19 +02:00
Dirkjan Ochtman
8450fe59e5 Backed out changeset 1a3d3840a7eb (doesn't work on Python 2.3/2.4) 2008-07-02 10:58:27 +02:00
Dirkjan Ochtman
9f2ed6feaf merge with main 2008-07-02 09:31:13 +02:00
Dirkjan Ochtman
b4d9394e54 merge with crew-stable 2008-07-02 09:21:57 +02:00
Dirkjan Ochtman
65c2146242 hgweb: use a single-element tuple to return from protocol.unbundle()
Python 2.3/2.4 don't support yielding from inside try/finally blocks.
2008-06-30 10:36:45 +02:00
Dirkjan Ochtman
41a3b82458 add an Accept header to the http client 2008-06-29 23:02:02 +02:00
Dirkjan Ochtman
01e366a587 tests: add a test for the hgweb graph 2008-06-29 22:47:57 +02:00
Dirkjan Ochtman
35c3380f04 hgweb: return content iterator instead of using write() callable 2008-06-29 22:36:18 +02:00
Dirkjan Ochtman
d50a34e7a6 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.
2008-06-29 15:23:09 +02:00
Dirkjan Ochtman
abdd89596c streamclone yields chunks instead of accepting a file-like object 2008-06-29 14:20:01 +02:00
Dirkjan Ochtman
b79ad5315b templater: make a template a string-only iterator 2008-06-29 13:16:25 +02:00
Dirkjan Ochtman
ea85ac1c36 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.
2008-06-29 11:34:36 +02:00
Dirkjan Ochtman
daead2920b hgweb: move capabilities calculation back into hgweb.protocol 2008-06-29 11:35:08 +02:00
Dirkjan Ochtman
e28d0d4d77 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.
2008-06-29 11:35:06 +02:00
Dirkjan Ochtman
cf58037f76 tests: add some tests for web.allowpull configurations 2008-06-29 11:02:19 +02:00
Dirkjan Ochtman
ea809de249 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.
2008-06-28 15:28:43 +02:00
Dirkjan Ochtman
76f4a6be28 merge with mpm 2008-06-28 09:28:01 +02:00
Matt Mackall
2791e35714 acl: refactoring
- undo class structure
- make buildmatch return None for no function
- use contexts properly
- simplify check loop
2008-06-27 21:45:16 -05:00
Matt Mackall
d8df9690c0 manifest: make checkforbidden take a list 2008-06-27 19:27:00 -05:00
Matt Mackall
f1402a6652 context: add walk method 2008-06-27 19:25:48 -05:00
Matt Mackall
087987c8d8 context: add __int__ and hex methods 2008-06-27 18:44:43 -05:00
Matt Mackall
a65ef7bc5d util: add sort helper 2008-06-27 18:28:45 -05:00
Matt Mackall
d22a1c9537 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.
2008-06-27 14:53:30 -05:00
Matt Mackall
d4ab55a92b status: clean up all users for unknown files 2008-06-27 13:43:29 -05:00
Matt Mackall
8372593b89 churn: major refactor
- use contexts
- use ui.pushbuffer and patch.diff to greatly simplify patch generation
- simplify diff counting logic
- fold all the counting functions together
- simplify progress math
- simplify padding function
- kill graph helper function
- simplify alias reading
- use Schwartzian transform on stats
- change some notes to debugs
2008-06-26 18:49:45 -05:00
Brendan Cully
a20fe56ad5 coal: include current node in log, graph menu links 2008-06-26 13:37:47 -07:00
Dirkjan Ochtman
f174f95f70 hgweb: move shortcut expansion to request instantiation 2008-06-26 13:45:39 +02:00
Brendan Cully
f5b1d49e0d Check that git patches only touch files under root 2008-06-25 14:13:20 -07:00
Matt Mackall
8e1dce7068 purge: cleanup
- remove casefolding check, no longer needed
- fold error function into remove
- simplify eol logic
- remove force logic and parameters
2008-06-26 18:44:54 -05:00
Matt Mackall
9ae3592d4e dirstate: improve case-folding logic
- return normalized form in directory walk
- track normalized form in known
2008-06-26 15:55:23 -05:00
Matt Mackall
4382d6c797 dirstate: fold statwalk and walk 2008-06-26 14:35:50 -05:00
Matt Mackall
89dadf7a3b purge: use status 2008-06-26 14:35:50 -05:00
Matt Mackall
73c76dd164 repo.status: eliminate list_ 2008-06-26 14:35:50 -05:00
Matt Mackall
26bd918734 verify: lots of refactoring
- simplify finding first bad rev
- no need to count changesets
- add exc function to simplify exception handling
- combine checksize and checkversion to checklog
- unify missing revlog detection in checklog
- add checkentry to consolidate
  - linkrev lookup
  - detailed check of linkrev
  - detailed check of parents
  - duplicate checking
- use checkentry for changelog, manifest, and files
- simplify havecl and havemf
- track all changesets refering to a manifest
- move unnamed file check somewhere more useful
- reorder crosschecks
- fix filenodes crosscheck and add exception handling
- check unpacked size field
2008-06-26 14:35:50 -05:00
Matt Mackall
07f882031a verify: add some local variables 2008-06-26 14:35:50 -05:00
Matt Mackall
bc715be859 add __len__ and __iter__ methods to repo and revlog 2008-06-26 14:35:50 -05:00