Commit Graph

2503 Commits

Author SHA1 Message Date
Chris Mason
f6facbf17c mq: fix qparents to return the correct parent when no patches are applied 2006-06-27 10:49:46 -04:00
Chris Mason
26fe10a876 mq: hg qnew -f should refresh the new patch
qnew -f was originally meant to just skip the localchanges check.
But, it currently discards the local changes, which is not at all what
people expect.

This patch changes qnew -f to create the new patch and then
run hg qrefresh on it.  The local changes will be in the new
patch.
2006-06-27 11:23:06 -04:00
Vadim Gelfer
6a5fd53170 merge with crew. 2006-06-27 00:13:44 -07:00
Vadim Gelfer
26b73700a8 merge with wsgi changes. 2006-06-27 00:10:41 -07:00
Eric Hopper
8ac8a46249 Put support for persistent connections back in. 2006-06-27 00:09:37 -07:00
Eric Hopper
000dcf2978 Fix two small bugs that would've prevented the web interface and IPv6
from working.
2006-06-27 00:09:35 -07:00
Eric Hopper
4498f60ff4 This patch make several WSGI related alterations.
First, it changes the server to be almost a generic WSGI server.

Second, it changes request.py to have wsgiapplication and
_wsgirequest.  wsgiapplication is a class that creates _wsgirequests
when called by a WSGI compliant server.  It needs to know whether
or not it should create hgwebdir or hgweb requests.

Lastly, wsgicgi.py is added, and the CGI scripts are altered to
use it to launch wsgiapplications in a WSGI compliant way.

As a side effect, all the keepalive code has been removed from
request.py.  This code needs to be moved so that it is exclusively
in server.py
2006-06-27 00:09:33 -07:00
Eric Hopper
a0494b3aa0 Fix server to set up a more WSGI compliant environment. 2006-06-27 00:09:31 -07:00
Vadim Gelfer
c311a0a586 import: parse email messages 2006-06-27 00:09:13 -07:00
Thomas Arendsen Hein
26282a0687 Don't require opts['dry_run'] to be set to fix external tools like tailor. 2006-06-27 08:31:03 +02:00
Thomas Arendsen Hein
609fc3aa7b Allow using default values with ui.configlist, too, and add a test for this. 2006-06-26 22:44:48 +02:00
Thomas Arendsen Hein
58e95b6ac7 Make "[web] allow_push, deny_push" and "[http_proxy] no" use ui.configlist. 2006-06-26 16:47:24 +02:00
Thomas Arendsen Hein
b1e9507c44 Fixed [web] allow_archive for comma separated parameters by using ui.configlist.
Changed tests/test-archive to use allow_archive instead of the deprecated
allowzip, allowgz and allowbz2.
2006-06-26 14:56:14 +02:00
Thomas Arendsen Hein
a8184486dc Added ui.configlist method to get comma/space separated lists of strings.
For example:
 users = alice, bob
 colors = red green blue
2006-06-26 14:52:26 +02:00
Thomas Arendsen Hein
6ed54e7d77 Fix ui.expandpath problem and broken test introduced by 5460bea2cce9. 2006-06-26 14:49:18 +02:00
Vadim Gelfer
fc206d2a40 do not try to package lsprof if not available. 2006-06-23 19:20:22 -07:00
Vadim Gelfer
aaa7510117 add test for default-push. 2006-06-23 18:23:42 -07:00
Vadim Gelfer
b32329ed97 make ui.expandpath better with default path. 2006-06-23 18:23:32 -07:00
Vadim Gelfer
67d092ce02 push, outgoing, bundle: fall back to "default" if "default-push" not defined 2006-06-23 18:09:44 -07:00
Vadim Gelfer
b283318ce4 print message after backout that tells that backout adds new head. 2006-06-23 17:33:10 -07:00
Brendan Cully
15cb23906a Test case for #295 2006-06-23 17:21:04 -07:00
Chris Mason
2124a015d1 Fix localrepo.changes() Correctly decide if we are diffing the working dir 2006-06-23 16:42:48 -07:00
Brendan Cully
a8557bc216 Test case for #294 2006-06-23 08:10:06 +02:00
Benoit Boissinot
231afefcb6 simplify filterfiles when filtering based on a directory
since an unkown files cannot be an exact match, we bisect
for a <path>/ instead of <path> and we get only the files
below the directory.
2006-06-23 08:09:48 +02:00
Brendan Cully
4c25b98467 filterfiles: Search as long as the target is a prefix of current.
filterfiles was failing to find files for directory arguments if
another file existed that started with the directory name and
sorted earlier. For example, a manifest of ('foo.h', 'foo/foo')
would cause filterfiles('foo') to return nothing. This resolves
issue #294.
2006-06-23 00:11:53 +02:00
Vadim Gelfer
df5378a901 remove duplicate code. 2006-06-21 22:45:29 -07:00
Shun-ichi GOTO
13b2a0288b Fixed conditional include of stdint.h for windows/msvc6/python2.3 environment. 2006-06-22 13:19:52 +09:00
andrea@suse.de
a73c78bc87 Fix hg diff regression 2006-06-22 02:44:39 +02:00
Vadim Gelfer
7a916fce8b add tests for push over http. 2006-06-21 17:55:11 -07:00
Vadim Gelfer
29a0efc318 fix -I/-X when relative paths used or in subdir 2006-06-21 17:30:31 -07:00
Vadim Gelfer
acba08e292 hg.repository: many routines expect path to be a string even if empty. 2006-06-21 17:09:29 -07:00
Vadim Gelfer
c6946676ed fix bug in localrepo.changes.
caused by a7bed91ac70412cad91b76f93863bba06d289ff4.
2006-06-21 16:20:21 -07:00
Vadim Gelfer
b2be07e448 use commit time as mtime for file archives.
now output from two run of "hg archive -t zip" is same.
2006-06-21 15:31:23 -07:00
Vadim Gelfer
ed8f9c5fd3 archive: make "hg archive -t XXX -" to write to stdout 2006-06-21 15:15:06 -07:00
Vadim Gelfer
f6098bdc1f merge with crew. 2006-06-21 09:32:31 -07:00
Chris Mason
4bb4096145 Fix cold cache diff performance
cold cache diff performance has regressed in two ways.  localrepo.changes
has optimizations for diffing against the working dir parent that expect
node1 to be None.  commands.revpair() usage means that commands.dodiff()
never sends node1 == None.  This is fixed in localrepo.changes by checking
against the dirstate parents.

In the non-dirstate parents case, localrepo.changes does a loop comparing
files without first sorting the file names, leading to random access
across the disk.
2006-06-21 09:28:48 -07:00
Vadim Gelfer
fb46b0c6ed change some repo messages in small ways.
move "pushing" and "pulling" after repo create so error message and exit
happens before messages printed.

fix sshrepo parse error message.
2006-06-21 09:15:42 -07:00
Vadim Gelfer
529a731a4f make repo scheme table driven. 2006-06-21 09:14:36 -07:00
Vadim Gelfer
cbbcaa74fe merge with crew. 2006-06-20 23:58:45 -07:00
Vadim Gelfer
9a0c813fdc use demandload more. 2006-06-20 23:58:21 -07:00
Vadim Gelfer
bdb09ce800 hg.repository: make protocol table driven.
allows extensions to add new protocols.
2006-06-20 18:39:52 -07:00
Vadim Gelfer
e18ca75a83 mac os x: fixes for 10.2 from chris monson <monpublic@gmail.com> 2006-06-20 17:51:39 -07:00
Vadim Gelfer
f76d70d9bf http client: better work with authorization errors, broken sockets. 2006-06-20 15:23:54 -07:00
Vadim Gelfer
9420a748d4 push over http: server side authorization support.
new hgrc entries allow_push, deny_push, push_ssl control push over http.

allow_push list controls push.  if empty or not set, no user can push.
if "*", any user (incl. unauthenticated user) can push.  if list of user
names, only authenticated users in list can push.

deny_push list examined before allow_push.  if "*", no user can push.
if list of user names, no unauthenticated user can push, and no users
in list can push.

push_ssl requires https connection for push.  default is true, so password
sniffing can not be done.
2006-06-20 15:23:01 -07:00
Vadim Gelfer
ce407e5396 push over http: client support.
stream bundle data using PUT request.
2006-06-20 15:17:28 -07:00
Vadim Gelfer
6086f69eb4 push over http: server support.
write "unbundle" verb for http.
2006-06-20 15:16:50 -07:00
Vadim Gelfer
f40e35da3c localrepository.push: propagate return value 2006-06-20 15:14:12 -07:00
Vadim Gelfer
b1e704337e util: add limit to amount filechunkiter will read 2006-06-20 15:13:17 -07:00
Alexis S. L. Carvalho
30401d484f Change revlog.heads to walk the revision graph using revision numbers
On the kernel repo:
$ hg heads -q
           before    after
RevlogNG    1.11     0.52
Revlogv0    0.80     0.69

Since the current code for tags has to find all the heads of the repo,
this also helps there:
$ hg tags
           before    after
RevlogNG    2.35     1.76
Revlogv0    2.04     1.90
2006-06-20 15:02:23 -03:00
Alexis S. L. Carvalho
6b69fa6621 Add revlog.parentrevs function.
This allows one to walk the revision graph using only revision numbers,
which can be faster than using revision hashes, especially for
RevlogNG, where the parents of a revision are stored as revision
numbers.
2006-06-20 14:57:30 -03:00