Commit Graph

11862 Commits

Author SHA1 Message Date
Pradeepkumar Gayam
49e1d53fdc tests: unify test-revlog-group-emptyiter 2010-08-17 17:53:11 +05:30
Pradeepkumar Gayam
4a2f44d4b0 tests: unify test-install 2010-08-17 17:48:59 +05:30
Martin Geisler
b6dcfa5955 tests: unify test-subrepo-svn 2010-08-17 16:53:03 +02:00
Martin Geisler
f78caca1fb tests: unify test-subrepo-relative-path 2010-08-17 16:52:47 +02:00
Martin Geisler
ddb79b6591 tests: unify test-subrepo-paths 2010-08-17 16:52:42 +02:00
Martin Geisler
7cbf3336a2 tests: unify test-subrepo-deep-nested-change 2010-08-17 16:52:26 +02:00
Martin Geisler
571beb8194 tests: unify test-subrepo 2010-08-17 16:52:05 +02:00
Andreas Freimuth
ccfa11f997 tests: unify test-patchbomb 2010-08-16 20:44:33 +02:00
Martin Geisler
0e8913d417 Merge with mpm 2010-08-16 20:33:58 +02:00
Nicolas Dumazet
bf01f8b7fd tests: unify test-mq-symlinks 2010-08-16 10:59:38 +09:00
Nicolas Dumazet
50e850ed44 tests: use regular expressions instead of helpers 2010-08-16 10:58:03 +09:00
Nicolas Dumazet
c747f4df44 tests: unify test-mq-strip 2010-08-16 10:53:52 +09:00
Matt Mackall
602d344ffb tests: drop big sed from test-keyword.t 2010-08-15 13:26:12 -05:00
Nicolas Dumazet
8e66bf00c0 tests: unify test-grep 2010-08-16 02:03:29 +09:00
Nicolas Dumazet
32ca03310d cmdutil: code simplification 2010-08-15 23:38:00 +09:00
Nicolas Dumazet
8ff97c8aa5 tests: unify test-log 2010-08-15 23:34:46 +09:00
Nicolas Dumazet
252ff032c2 log: do not --follow file that is deleted and recreated later (issue732)
== What ==

issue732 is only one example of a buggy behaviour, but there are in fact many
intricated cases. For example:

( "o" contains an alive version of the tracked file, "x" does not)

tip - o - o - x - o - o - x ...
   \
    o - o - o - o - x ...
     \     /
      o - o

This repository contains at least two instances of the tracked file, but
when calling "hg log -f file" only the latest one (the one alive in tip)
matters to us.

== How ==

We must extract from the filelog the history of the file instance we're
interested in and discard changes related to other instances of that file.

We see that we're only interested in ancestors(node), and that all
other nodes in the filelog should not be considered.
2010-08-15 23:17:53 +09:00
Nicolas Dumazet
cf83707c9c tests: unify test-mq-safety 2010-08-15 22:44:15 +09:00
Nicolas Dumazet
6a92865eb0 tests: unify test-mq-caches 2010-08-15 22:07:23 +09:00
Nicolas Dumazet
b93b3e1a24 tests: unify test-mq-guards 2010-08-15 21:58:43 +09:00
Nicolas Dumazet
ef00e32071 tests: unify test-mq-eol 2010-08-15 21:45:31 +09:00
Nicolas Dumazet
b071cff3e6 tests: unify test-mq 2010-08-15 21:41:45 +09:00
Patrick Mezard
a427ed15e6 Merge with stable 2010-08-15 18:50:19 +02:00
Adrian Buehlmann
9aadbce905 tests: combine test-dirstate-future.t
into test-dirstate.t
2010-08-15 18:25:29 +02:00
Adrian Buehlmann
4f46a2e9a0 tests: unify test-dirstatedirs 2010-08-15 18:24:49 +02:00
Martin Geisler
ec0bf03276 Merge with stable 2010-08-15 18:13:46 +02:00
Martin Geisler
17737f37b7 dagparser: transplant part of aac98bf716a5 2010-08-15 17:49:59 +02:00
Martin Geisler
888421d8ca check-code: catch "echo -n" in tests 2010-08-15 17:48:05 +02:00
Martin Geisler
699ed71d72 test-init: replace 'echo -n' with 'printf'
The '-n' argument to echo is a non-standard extension that isn't
supported on Mac OS X 10.6.
2010-08-15 17:42:44 +02:00
Renato Cunha
706e64ef14 url.py: removed 'file' inheritance in the httpsendfile class
Since py3k doesn't have a "file" builtin and, consequently, doesn't support
inheriting from it, this patch refactors the httpsendfile class to wrap the
objects returned by the builtin "open" function while adding the necessary
methods (__len__ for constructing the Content-Length header and read, write,
close and seek for the file-like interface).
2010-08-14 18:31:22 -03:00
Benoit Boissinot
15d634f7a0 fix undefined variables, spotted by pylint 2010-08-15 11:05:04 +02:00
Dan Villiom Podlaski Christiansen
d64d4dc9f0 encoding: improve handling of buggy getpreferredencoding() on Mac OS X
Prior to version 2.7, calling locale.getpreferredencoding() would
always return 'mac-roman' on Mac OS X. Previously, this was handled by
a call to locale.setlocale(). Unfortunately, Python 2.6.5 and older
have a bug where isspace() would incorrectly report True for 0x85 and
0xa0 after such a call.

In order to fix this, we replace the previous _encodingfixup mapping
to an _encodingfixers mapping. Rather than mapping encodings to their
replacement, it maps them to a function returning the
replacement. This allows us to provide an simplified implementation of
getpreferredencoding() which extracts the expected encoding and
restores the locale.

This fix is based on a patch originally submitted by Martijn Pieters
as well as feedback from Brodie Rao.
2010-08-14 01:30:54 +02:00
Patrick Mezard
cfb0a4943f templatefilters: unnest uescape() 2010-08-15 17:50:52 +02:00
Christian Ebert
90ee79b424 tests: unify test-keyword 2010-08-13 13:54:33 +01:00
Matt Mackall
b9245aed5b test-walk: enable absolute path tests 2010-08-13 13:20:15 -05:00
Wagner Bruna
a056b85166 revset: fix outgoing argument handling 2010-08-12 20:54:34 -03:00
Martin Geisler
90ff407862 debugbuilddag: escape backslash properly in help string 2010-08-15 17:33:03 +02:00
Greg Ward
b38d220736 commit: explicitly document the existence of "last-message.txt" 2010-08-14 14:57:33 +02:00
Mads Kiilerich
e26e44a190 mercurial.spec: gettext is a build requirement for getting proper localization 2010-08-14 01:31:57 +02:00
Wagner Bruna
4da44ca3ac http basic auth: reset redirect counter on new requests (issue2255)
On Python 2.6.6 (and patched 2.6.5 on certain Linux distros),
the change that caused issue2255 was also applied to non-digest
authentication; this change extends the 3405cb92c120 fix
accordingly.
2010-08-13 13:32:05 -03:00
Benoit Boissinot
21c145b776 rebase: recompute the set of skipped rev when using --continue (issue2330) 2010-08-13 18:02:02 +02:00
Yuya Nishihara
f6cfbe6d14 templatefilters: use \uxxxx style escape for JSON string
It's embeddable in plain javascript, and also conforms to JSON standard.
2010-08-11 01:06:21 +09:00
Dan Villiom Podlaski Christiansen
8933f2e981 test-notify: make it pass on Mac OS X (again)
Changeset 372e3cb2c9bf (from 2008) introduced a hack to handle the
very long values of $TMPDIR typically seen on Mac OS X. This hack
expected continuation lines to begin with a tab. However, as a result
of a change in Python 2.7, changeset 025d0ea4305a made it so
continuation lines began with a tab. Since then, `test-notify' has
been broken on Mac OS X.

Merely replacing the tab in the regular expression with a space will
not work: not only do tab continuations still occur in the message, but
other lines -- in the body of the message -- also start with a
space. Luckily, all broken up lines appear to end with either a colon
or an n, so we can match those, and reinsert them in the replacement.
2010-08-13 17:21:06 +02:00
Renato Cunha
2000c93772 py3kcompat: added fake ord implementation for py3k
In py3k, a bytes object __getitem__ will return an int instead of a
one-character bytes object. This has negative consequences when we want to
ord(), like in the following example:

>>> b'foo'[0]
102
>>> ord(b'foo'[0])
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: ord() expected string of length 1, but int found

This patch overrides the default ord() implementation to just return an int
that's what is passed as an argument for ord(). Making the above call succeed:

>>> ord(b'foo'[0])
102
2010-08-07 16:38:38 -03:00
Martin Geisler
e7bd3fc69a Merge with stable 2010-08-14 03:30:35 +02:00
Martin Geisler
0a65ccd601 tests: unify test-changelog-exec 2010-08-14 03:28:45 +02:00
Martin Geisler
0bbc8137d3 tests: unify test-cat 2010-08-14 03:27:24 +02:00
Martin Geisler
2a66a11e86 tests: unify test-bundle-vs-outgoing 2010-08-14 03:26:03 +02:00
Martin Geisler
9e6d9afbda tests: unify test-bundle-type 2010-08-14 03:23:56 +02:00
Martin Geisler
309e5d6f12 tests: unify test-bundle-r 2010-08-14 03:22:11 +02:00