Commit Graph

3568 Commits

Author SHA1 Message Date
Thomas Arendsen Hein
9813e25f31 Explicitly use REVLOGV0 instead of 0 in bundlerepo. 2006-10-29 10:55:38 +01:00
Thomas Arendsen Hein
687e4a7111 Define and use nullrev (revision of nullid) instead of -1. 2006-10-29 10:53:51 +01:00
Alexis S. L. Carvalho
17f016acd0 Correct optimization from 56bc6966622e; add a test.
If there are two (or more) heads that point to the same .hgtags
node, we can safely skip parsing the file in all but the last head.
(In 56bc6966622e, we were parsing the file in the first head and
skipping all the others.)
2006-10-28 23:37:59 -03:00
Alexis S. L. Carvalho
c8198124de log speedup: don't call revlog.node if we don't have to 2006-10-28 20:21:59 -03:00
Alexis S. L. Carvalho
e925a154ec log speedup: use list.extend to avoid an explicit loop 2006-10-28 20:21:57 -03:00
Alexis S. L. Carvalho
661a579963 log speedup: use parentrevs in log and changeset_printer.show 2006-10-28 20:21:56 -03:00
Alexis S. L. Carvalho
9b7121fcf6 log speedup: set quiet/verbose/debugflag in the fake ui object 2006-10-28 20:21:55 -03:00
Alexis S. L. Carvalho
c4f0ee1324 log speedup: use only ui.write in changeset_printer.show
- ui.status is not very useful, since this code is never
  executed when ui.quiet is true.

- explicitly checking for ui.debug allows a regular hg log to
  run without looking at the manifest index

- the calls to ui.note were converted for consistency
2006-10-28 20:21:54 -03:00
Alexis S. L. Carvalho
dda0210dc4 log speedup: walkchangerevs: filter the files only if we need them
This speeds up hg log and significantly reduces memory usage (max RSS
goes from ~92MB to ~21MB on the kernel repo), since we no longer store
all the revisions in the cache.
2006-10-28 20:21:52 -03:00
Thomas Arendsen Hein
4d0e63ed13 Inform the user about the new URL when being redirected via http.
Additionally the changed code ensures that the new URL is used,
even if it doesn't end with the query string.
2006-10-28 23:05:57 +02:00
Thomas Arendsen Hein
fcfb50e224 Stripping of query string (since b7aa16033ab7) stripped too much (issue327)
rstrip(qs) not only strips qs from the right, but it continues stripping
every char at the end of the URL that occurs on qs.
2006-10-28 11:00:59 +02:00
Thomas Arendsen Hein
11cdc6b21b Merge with upstream 2006-10-27 23:09:46 +02:00
Matt Mackall
64f1cb83ae small refactoring of path normalization in dirstate.statwalk 2006-10-27 14:10:01 -05:00
Matt Mackall
e803b50ef2 Make util.unique return a list 2006-10-27 14:06:32 -05:00
Thomas Arendsen Hein
cdecbefe20 Turn bundle file into a string for http push, for urllib2 over proxies. 2006-10-27 19:24:57 +02:00
Matt Mackall
7f3045c670 Simplify ignore logic in dirstate.walk
- kill blockignore hack
- pull pconvert out of imatch
- skip imatch when not ignoring
2006-10-27 12:09:33 -05:00
Thomas Arendsen Hein
d3647fdf40 Force the content-length header to be a string in httprepo.unbundle.
(Needed for Python2.3 compatibility)
2006-10-27 18:30:53 +02:00
Matt Mackall
24c7fbb0f1 shortname: truncate at '.' too 2006-10-27 11:30:20 -05:00
Matt Mackall
5186d07f32 improve walk docstrings 2006-10-27 11:24:10 -05:00
Thomas Arendsen Hein
a0f9f54446 Use the new UnexpectedOutput exception in httprepo, too. 2006-10-27 18:20:28 +02:00
Thomas Arendsen Hein
a0477d89a5 New UnexpectedOutput exception to catch server errors in localrepo.stream_in
If the unexpected is a string, the empty string will be mentioned, and long
strings are cut to at most 400 chars.
2006-10-27 18:17:12 +02:00
Thomas Arendsen Hein
46a2065971 Some clarifications for pull/push protocols:
- List file:// and static-http://
- Mention that you can pull from bundle files
- List http and https as valid push targets, but emphasize that this
  feature has to be enabled.
2006-10-27 15:56:34 +02:00
Benoit Boissinot
a44e11eb87 httprepo: record the url after a request, makes pull + redirect works
POST+redirect doesn't work in python, as a workaround we record the url
from the previous GETs so that when we do a POST it uses the redirected url
fix issue327
2006-10-27 15:02:27 +02:00
Benoit Boissinot
40a55ea6a3 add AIX to the list of compilers that don't have inline keyword 2006-10-27 10:24:19 +02:00
Matt Mackall
9297d4db5f convert dict(zip(x,x)) to dict.fromkeys(x) 2006-10-27 00:38:42 -05:00
Brendan Cully
3606bc94d5 zsh: support remote URLs 2006-10-26 22:28:33 -07:00
Matt Mackall
fc94bcf116 minor hg grep simplification 2006-10-26 23:59:21 -05:00
Matt Mackall
f84252f879 simplify dirstate walking
- kill walkhelper
- stop passing dc around
- remove unused stat arg from statmatch (renamed imatch)
2006-10-26 23:54:24 -05:00
Brendan Cully
01eda2914c zsh: suppress mq completion error messages outside of repository 2006-10-26 17:33:24 -07:00
Brendan Cully
726d081e93 zsh: suppress error message for status completion outside of repository 2006-10-26 17:28:12 -07:00
Matt Mackall
16cbfeb13b kill makewalk function 2006-10-26 18:43:57 -05:00
Matt Mackall
95ac6e3bc1 Pull getchange out of walkchangerevs 2006-10-26 17:45:03 -05:00
Matt Mackall
6ff42f7ea8 Make revrange return a list of ints so that callers don't have to convert 2006-10-26 17:27:07 -05:00
Matt Mackall
9062f155f7 simplify revrange and revpair 2006-10-26 17:15:55 -05:00
Matt Mackall
89015daf47 lookup(str(x)) -> lookup(x) 2006-10-26 14:09:15 -05:00
Matt Mackall
53e3681702 Fixups for hg grep
- kill trimuser function
- remove ucache
- simplify descending logic
- fix files with matches logic
- correct tests
2006-10-26 14:04:58 -05:00
Thomas Arendsen Hein
f26c110d43 Turn of "Not trusting file" logging when running hgweb and hgwebdir
(hg serve still shows the warning)
2006-10-26 19:25:45 +02:00
Alexis S. L. Carvalho
a28f2ec0e2 use untrusted settings in hgwebdir 2006-10-26 19:25:45 +02:00
Alexis S. L. Carvalho
0f80467c85 use untrusted settings in hgweb
The only exceptions are web.static and web.templates, since they can
be used to get any file that is readable by the user running the CGI
script.

Other options can be (ab)used to increase the use of the cpu
(allow_bz2) or of the bandwidth (server.uncompressed), but they're
trusted anyway.
2006-10-26 19:25:45 +02:00
Alexis S. L. Carvalho
18fea415ad add untrusted argument to patch.diffopts 2006-10-26 19:25:45 +02:00
Alexis S. L. Carvalho
66d525aa04 add --untrusted to showconfig 2006-10-26 19:25:45 +02:00
Alexis S. L. Carvalho
cb59e4de82 save settings from untrusted config files in a separate configparser
This untrusted configparser is a superset of the trusted configparser,
so that interpolation still works.

Also add an "untrusted" argument to ui.config* to allow querying
ui.ucdata.

With --debug, we print a warning when we read an untrusted config
file, and when we try to access a trusted setting that has one value
in the trusted configparser and another in the untrusted configparser.
2006-10-26 19:25:45 +02:00
Alexis S. L. Carvalho
c44cea1532 Only read .hg/hgrc files from trusted users/groups
The list of trusted users and groups is specified in the [trusted]
section of a hgrc; the current user is always trusted; "*" can be
used to trust all users/groups.

Global hgrc files are always read.

On Windows (and other systems that don't have the pwd and grp modules),
all .hg/hgrc files are read.

This is essentially the same patch that was previously applied as
revision f077d29b114d.
2006-10-26 19:25:44 +02:00
Brendan Cully
dccb39e75b zsh: add revrange completion 2006-10-26 10:06:12 -07:00
Brendan Cully
ab95045857 zsh: add qbase and qtip to qapplied completions 2006-10-26 09:46:08 -07:00
Brendan Cully
ddd5d9ba9a zsh: use standard tags where possible 2006-10-26 09:44:03 -07:00
Brendan Cully
b632ccfd90 mq: support qimport - 2006-10-26 09:40:20 -07:00
Matt Mackall
ae91bf4e42 Update tests for removed commands 2006-10-25 18:31:49 -05:00
Matt Mackall
35471c1ba4 Remove update -m, deprecated for 0.9.1 2006-10-25 18:29:54 -05:00
Matt Mackall
a8665c71fb Remove the undo command, deprecated pre-0.9 2006-10-25 17:53:24 -05:00