Martin Geisler
aedc0ac57f
tests: removed unnecessary execute bit on Python tests
2009-05-17 01:42:21 +02:00
Martin Geisler
a645da9ed1
tests: renamed Python tests to .py
2009-05-17 01:39:31 +02:00
Martin Geisler
5930e2185d
tests: renamed helper to avoid clash with stdlib repr module
2009-05-17 02:31:12 +02:00
Martin Geisler
9aedf5dabd
tests: fix doc string in get-with-headers.py
2009-05-17 01:24:45 +02:00
Marti Raudsepp
1d10c4d979
tests: use repr.py to avoid binary characters in test output
2009-05-17 01:16:56 +02:00
Martin Geisler
4bdb838b6b
tests: new helper for tests with binary output
2009-05-17 01:10:35 +02:00
Greg Ward
dd681d84e9
convert: improve docstrings, comments.
2009-05-16 14:15:58 -04:00
Martin Geisler
b43ec973e1
changelog: turn {de,en}code_extra methods into functions
...
The methods were not really methods -- they didn't use 'self'. Having
them as functions in the module it useful for other modules (like the
commitsigs extension) that want to recompute the changeset hash and
thus want to encode dicts the same way as changelog does it.
Removed the underbars from their names at the same time.
2009-05-15 01:21:24 +02:00
Martin Geisler
f138e91851
merge with crew-stable
2009-05-16 11:16:23 +02:00
Martin Geisler
fc8a97dac3
changelog: refuse to add revisions with empty usernames
...
An empty username or a username with a "\n" will make the revision
text contain two "\n\n" sequences -> corrupt repository.
The problem is that changelog.read expects to find exactly one "\n\n"
separator and thus cannot unpack the revision.
2009-05-16 11:12:49 +02:00
Martin Geisler
ee6f4bf040
contrib/win32: add simple style sheet
2009-05-16 08:46:42 +02:00
Martin Geisler
449d0084f2
contrib/win32: updated title of the hgbook
2009-05-16 08:38:04 +02:00
Martin Geisler
c08fe914b5
contrib/win32: format file names and env vars with <tt>
2009-05-16 08:37:06 +02:00
Martin Geisler
caab648bf1
contrib/win32: indent and word wrap consistently
2009-05-16 08:33:23 +02:00
Martin Geisler
d3744da5b7
contrib/win32: add missing <p> tags
2009-05-16 08:26:36 +02:00
Martin Geisler
5cd17cb3ee
contrib/win32: fix HTML tag nesting
2009-05-16 08:22:30 +02:00
Patrick Mezard
d3d9100f4a
convert/bzr: fix symlinks target (issue1626/2)
2009-05-15 16:12:09 +02:00
Adrian Buehlmann
93dfb394e2
contrib/win32: license is GPLv2 only
...
according to Matt Mackall
2009-05-15 13:59:43 +02:00
Patrick Mezard
8a575f0b78
Merge with crew-stable
2009-05-15 16:17:56 +02:00
Dirkjan Ochtman
1e9b20dc8f
mq: qpush shouldn't complain if working dir is at a non-tip head
2009-05-15 15:21:17 +02:00
Dirkjan Ochtman
f9ccb5f95a
contrib: add tmplrewrite.py script to help rewrite old templater syntax
2009-05-15 10:47:19 +02:00
Dirkjan Ochtman
42214607df
spartan: use newer template syntax everywhere
2009-05-15 10:47:13 +02:00
Dirkjan Ochtman
8a34c657f7
monoblue: use newer template syntax everywhere
2009-05-15 10:47:05 +02:00
Dirkjan Ochtman
daf1f83687
raw: use newer template syntax everywhere
2009-05-15 10:46:59 +02:00
Dirkjan Ochtman
5d9bd0d9a8
atom/rss: use newer template syntax everywhere
2009-05-15 10:46:52 +02:00
Dirkjan Ochtman
bf8449b8b4
git: use newer template syntax everywhere
2009-05-15 10:46:39 +02:00
Martin Geisler
49d93faf0c
changelog: removed bad default arguments in add method
...
The arguments defaulted to None, but
- user cannot be None since it is immediately stripped.
- p1 and p2 cannot be None since they are passed directly to
revlog.addrevision, where they are mandatory.
2009-05-15 00:55:14 +02:00
Martin Geisler
aed75cf65f
util: import random, missing since 5c703a28d882
2009-05-14 22:59:12 +02:00
Sune Foldager
adc90b2605
posixfile: remove posixfile_nt and fix import bug in windows.py
...
The posixfile_nt class has been superseded by posixfile in osutils.c,
which works on Windows NT and above. All other systems get the regular
python file class which is assigned to posixfile in posix.py (for POSIX)
and in the pure python version of osutils.py (for Win 9x or Windows NT
in pure mode).
2009-05-13 21:36:16 +02:00
Bryan O'Sullivan
496cd5e84c
util: make atomictempfile saner if mktempcopy fails
2009-05-14 14:12:32 -07:00
Martin Geisler
2cd0933d15
merged with crew-stable
2009-05-14 23:05:16 +02:00
Brett Carter
d69cd3912f
clone: try updating to the actual changeset specified in options
...
When cloning with the -r option or # url format from a tag the destination
repo most likely won't have the tag. We can save the lookup result to get to
the correct parent anyway. Similar to issue1306, but for tags.
2009-05-14 22:00:56 +02:00
Matt Mackall
1317ac7a01
commit: hoist the rest of the dirstate manipulation out of commitctx
2009-05-14 13:24:39 -05:00
Matt Mackall
c2aadfc41a
commit: hoist up dirstate invalidate
2009-05-14 13:24:39 -05:00
Matt Mackall
a8b0644dec
commitctx: use contexts more fully
2009-05-14 13:24:26 -05:00
Matt Mackall
188df2eaa9
context: add new manifestnode method
2009-05-14 13:21:20 -05:00
Matt Mackall
3a18f346a9
commitctx: eliminate some variables
2009-05-14 13:21:20 -05:00
Matt Mackall
38ebdc6dd1
commit: move lots of commitctx outside of the repo lock
2009-05-14 13:21:20 -05:00
Matt Mackall
a9fbdd49f0
commit: combine _commitctx and commitctx, drop unused force argument
2009-05-14 13:21:20 -05:00
Matt Mackall
5534a9c3e3
editor: move HG: filtering from ui to commiteditor
2009-05-14 13:21:17 -05:00
Matt Mackall
2e4dd0c345
grep: make cache LRU rather than unlimited
...
grep could cache an unbounded number of revlogs, limit to 20 with an
LRU cache.
2009-05-14 13:20:40 -05:00
Matt Mackall
ebe3b0ebc3
commit: move commit editor to cmdutil, pass as function
2009-05-14 13:20:40 -05:00
Matt Mackall
9a5dcd2974
context: add p1 and p2 methods
2009-05-14 13:20:40 -05:00
Matt Mackall
ad33c59077
commit: push repo lock down into _commitctx
2009-05-14 13:20:40 -05:00
Matt Mackall
580ab4b4ab
commit: move 'nothing changed' test into commit()
2009-05-14 13:20:40 -05:00
Matt Mackall
771b18c870
commit: drop unused p1 and p2 args
2009-05-14 13:20:40 -05:00
Matt Mackall
d229f38315
tag: drop unused use_dirstate and parent from _tag()
2009-05-14 13:20:40 -05:00
Matt Mackall
49e6e0b6c0
filecommit: swallow some bits from _commitctx, add _
2009-05-14 13:20:40 -05:00
Matt Mackall
e77584d5e2
commitctx: replace wctx with ctx
2009-05-14 13:20:40 -05:00
Matt Mackall
32a69c4899
commitctx: replace two dirstate vars with working
2009-05-14 13:20:40 -05:00