Commit Graph

2127 Commits

Author SHA1 Message Date
Matt Mackall
4d074f2f87 add a fix for issue 1175
If we copy a file followed by an update, it's possible for the parent
manifest to no longer contain the source file of the copy, which could cause
commit to fail. If this happens, we search backwares from the first
parent to find the most likely original revision.
2008-08-10 18:01:03 -05:00
Thomas Arendsen Hein
67623d98de Make test-convert-mtn pass on systems where mtn add -R uses different order 2008-08-09 11:46:20 +02:00
Thomas Arendsen Hein
d912d56f04 Make test-hardlinks-safety repeatable and executable 2008-08-08 18:48:26 +02:00
Bernhard Leiner
12387fffd4 add additional bisect tests 2008-08-02 22:10:54 +02:00
Bernhard Leiner
41c8918f2f add additional complex bisect tests (with non-linear history) 2008-08-02 22:11:22 +02:00
Patrick Mezard
c717caba48 Fix subversion tests with svn 1.5 2008-07-30 22:26:41 +02:00
Benoit Boissinot
9d636a4b09 make mq and tags hardlink safe
The code didn't check for modes like "r+" or "rb+".
Many thanks to agriffis for noticing it.
2008-07-23 16:08:20 +02:00
Patrick Mezard
1277ce4266 test-branches: add a test for long branch name (issue 1230) 2008-07-20 21:00:13 +02:00
Patrick Mezard
42c2e73f4f mq: fix qrefresh losing copy information (issue 1134) 2008-07-07 09:16:09 +02:00
Brendan Cully
2aef8dbc09 Check that git patches only touch files under root 2008-06-25 14:13:20 -07:00
Thomas Arendsen Hein
6fbdf04649 run-tests.py: Make tests run with python2.3 if HGTEST_* is set.
optparse of python2.3 does not transform default values to the specified
type so e.g. "HGTEST_JOBS=4" (introduced in b8e8d6b0ae08) causes tests
to abort, because options.jobs is set to '4' instead of the number 4.
2008-06-16 11:37:26 +02:00
Patrick Mezard
c7f6f81b90 Ignore dummy copies in dirstate and localrepo.filecommit() 2008-06-15 13:01:03 +02:00
Dirkjan Ochtman
fc7fc528ad show enabled extensions in hg help 2008-10-18 16:50:03 +02:00
Benoit Allard
38a25978ad graph: replace the blinking no javascript message 2008-10-18 16:09:07 +02:00
Christian Ebert
5cbc9e210a highlight: convert text to local before passing to pygmentize (issue1341)
Example case:
Display file written in iso-8859-1 with current HGENCODING utf-8.
At the moment only an Error page appears because pygmentize
chokes on the replacement chars.

Alternatives:
1) Turn off highlighting and avoid UnicodeDecodeError
   for files that are not in HGENCODING.
2) [this patch] use util.tolocal to display these files.

Alternative 2) seems ok, as this only concerns display and
readability.

See also: c5f1a58b8b9a, apparently put aside during refactor of
highlight.

Add test for UnicodeDecodeError with iso-8859-1 file contents.
2008-10-17 12:12:33 +02:00
Christian Ebert
586a27bcb7 notify: mime-encode messages
- addresses will be properly encoded
- message bodies will also be encoded as we are not sending
  patches that are meant to be applied
- update test output
- adapt test-keyword to ignore the new headers
2008-07-12 19:12:18 +01:00
Mads Kiilerich
552c248fa5 mq: Allow qrefresh --silent to take parameters
'hg qrefresh --short file.txt' now adds changes made to file.txt to current
patch.

This builds on a patch for implementing --amend by Kirill Smelkov as discussed
in issue933.

FIXME: Why do mq refresh have two matchers if we only need one?
2008-10-17 21:26:39 +02:00
Bernhard Leiner
78aef95fe0 Add parseindex2.py test case
Make sure that the new implementation in C return that same values as the
original Python implementation.
2008-10-17 01:05:10 +02:00
Dirkjan Ochtman
fc7a3b7024 tests: add some testing for patch.diffstat() 2008-10-17 17:34:25 +02:00
Benoit Boissinot
d6688cc959 bdiff: normalize the diff (issue1295)
When the common part of a diff can be moved forward, move it forward.
Otherwise we don't get deterministic results (it would depends on the way we
split for the recursion).
That way we get identical hunks when doing the same change, it helps to solve
issue1295 (inconsistent diffs on different side during a merge).
2008-10-14 20:13:53 +02:00
Patrick Mezard
71877ea8d9 convert: make built-in cvsps the default
Reviewed by Frank Kingswood <frank@kingswood-consulting.co.uk>
2008-10-15 20:14:28 +02:00
Benoit Boissinot
6f9f41a33d merge with crew 2008-10-15 16:27:36 +02:00
Benoit Boissinot
1d33f1c63b dirstate.walk: skip unreadable directories (issue1213)
Do not abort on permission denied error, just skip the directory.
2008-10-15 14:52:27 +02:00
Benoit Boissinot
45680829ac dirstate._dirs: fix refcounting broken by ece124266b74
reported by Patrick Waugh
2008-10-15 01:14:29 +02:00
Patrick Mezard
8e45917fce convert: fix builtin cvsps under Windows
Drafted and reviewed by Frank Kingswood <frank@kingswood-consulting.co.uk>.
2008-10-13 17:31:03 +01:00
Matt Mackall
c44a262dd5 inotify: add a test for lookup bug 2008-10-10 12:08:49 -05:00
Matt Mackall
84505139dc inotify: skip deactivation message 2008-10-10 11:29:57 -05:00
Patrick Mezard
0d0f719f13 tests: Windows compatibility fixes
- printenv.py, md5sum.py, simplemerge, test-archive, test-merge1,
  test-merge-symlinks: set standard streams to binary mode
- test-encode: replace "gunzip" by "gzip -d"
- test-hup: requires fifo
2008-10-12 19:11:59 +02:00
Patrick Mezard
e82fd2d627 Merge with crew-stable 2008-10-12 19:11:56 +02:00
Patrick Mezard
f8f73e46ef Merge with crew-stable 2008-10-10 13:20:40 +02:00
Patrick Mezard
e8a232c5c8 Show added files as "added" in editor commit message (issue 1330) 2008-10-09 14:16:17 +02:00
Alexander Solovyov
dfa7272d1d churn and stats commands merged 2008-10-09 00:14:20 +03:00
Matt Mackall
48ebb7a1ba merge: fix bug going backwards for already reverted files (issue1303) 2008-10-08 16:22:08 -05:00
Alexander Solovyov
0d41308ed2 churn: generalisation, now it is possible to see statistics grouped by custom template 2008-10-03 00:07:38 +03:00
Sune Foldager
9b5eac039b provide nicer feedback when an unknown node id is passed to a command
Previously, an unknown node id would lead to the following error:
abort: 00changelog.i@343445453433: no node!

All other unknown revision would instead display as:
abort: unknown revision '343445453'!

The former error message has been suppressed in favor of the latter.
2008-10-04 10:14:39 +02:00
Dirkjan Ochtman
1fde4bfba1 tests: check for bzr support by importing bzrlib
This is better than starting bzr --version, because it works correctly when
running tests with a non-default Python (version).
2008-10-02 16:22:02 +02:00
Benoit Boissinot
6866fd146e source doesn't work for some /bin/sh, use . instead 2008-09-29 12:12:53 +02:00
Patrick Mezard
4813e1621f get-with-headers: fix stream modes under Windows 2008-09-28 20:40:38 +02:00
Marek Kubica
0f790a60a5 convert: add bzr source 2008-09-26 20:33:47 +02:00
Dirkjan Ochtman
ba6b67f951 merge with crew-stable 2008-09-24 13:50:29 +02:00
Sune Foldager
1465c20864 fetch: use dirstate branch instead of first parents 2008-09-24 13:22:11 +02:00
Benoit Boissinot
66c79ea6b0 merge with -stable 2008-09-22 14:47:21 +02:00
Patrick Mezard
9b11dbf5dd Update coverage.py
There is no technical reason to update it except it contains all the patches
already done in mercurial plus other stuff. It will be easier to update and
maintain in the future.
2008-09-17 22:15:36 +02:00
Dirkjan Ochtman
0aa08a7ed8 merge with crew-stable 2008-09-17 11:34:37 +02:00
Rocco Rutte
f70a5a0f4e hgweb: Respond with HTTP 403 for disabled archive types instead of 404
This makes it easier for clients/users to distinct between supported
but disabled and unsupported archive types.
2008-09-05 17:28:37 +02:00
Benoit Boissinot
9ceefedcef merge with -stable 2008-09-10 23:20:04 +02:00
Benoit Boissinot
54526438a0 make test-mq-qdelete work reliably (issue1180)
if after a and b has been applied, their hash starts with c, then the test
would fail (because there would be a rev c which would be seen as "applied")
so probability of failure would be 2*1/16.
2008-09-10 17:55:49 +02:00
Benoit Boissinot
1dcbb85da7 run-tests.py: fix the check for the hg installation with -jn (n > 1) 2008-09-10 13:52:33 +02:00
Benoit Boissinot
401371bd20 merge backout 2008-09-10 08:49:05 +02:00
Benoit Boissinot
f4db28e2cc Backed out changeset 1aa58165fc81 (see issue916 for details) 2008-09-10 08:48:23 +02:00
Benoit Boissinot
7ba2d57a89 Do not try to load extensions twice (issue811) 2008-09-09 14:43:12 +02:00
Benoit Boissinot
416e5f2ef9 tag: without a checkout, base the tag changeset on tip instead of nullid
issue916
2008-09-08 14:04:10 +02:00
Sune Foldager
71dc05b36f fetch: added support for named branches
Previously, fetch didn't really work when there were multiple named branches
in the repository. Now it tries to do the right thing(tm) in all situations.
2008-09-08 12:55:46 +02:00
Sune Foldager
20edf348ee branch: added more support for named branches
hg branch now has a -C (--clean) option, to reset the current (dirstate)
branch to the branch of the last commit (first parent).
2008-09-08 12:55:27 +02:00
Martin Geisler
ca8bba4890 do not pretend to lock static-http repositories (issue994) 2008-09-08 11:32:53 +02:00
Benoit Boissinot
ebcbcef11c merge with -stable 2008-09-06 17:04:01 +02:00
Benoit Boissinot
ba9e79c7be merge with crew 2008-09-05 11:04:36 +02:00
Benoit Boissinot
0156251424 merge with -stable 2008-09-05 11:03:34 +02:00
Dirkjan Ochtman
051db6ab82 merge with crew-stable 2008-09-03 19:03:57 +02:00
Benoit Boissinot
20fc9c8d79 allow committing a removed directory
fix issue1089
2008-09-03 02:27:25 +02:00
Patrick Mezard
94ead662e7 convert: document source and sink identifiers, fix error message 2008-09-02 22:21:19 +02:00
Rocco Rutte
cc79439de6 highlight: only pygmentize for HTML mimetypes
For non-html mimetypes it doesn't make much sense. This also fixes the
issue that highlight unconditionally adds a <link/> tag for its CSS to
the template's header (which is pointless in text/plain output).
2008-09-05 10:39:57 +02:00
Patrick Mezard
20286160ce Merge with crew-stable 2008-09-02 09:47:40 +02:00
Benoit Boissinot
a45e96bda8 fix test output broken by 3268cb531b33 2008-09-02 01:19:12 +02:00
Martin Geisler
897f1ddab8 i18n: avoid naive plural tricks 2008-08-31 16:12:02 +02:00
Adrian Buehlmann
c937a43696 increase code coverage of test-clone
* add a non-inlined filelog to the test repo
* add 'clone --pull' test case
2008-08-30 18:47:54 +02:00
Dirkjan Ochtman
0c1845ffb9 hgweb: return content iterator instead of using write() callable
This is a new version of b6b16fec2a60 (which was backed out in faf83e1e40f5),
with an extra line removed to fix problems with hg serve. hg's internal web
server contains checking if the app isn't trying to write more bytes than
specified by the Content-Length header. The first try still contained an old
line that wrote the response, so the response was sent twice.
2008-08-30 17:13:23 +02:00
Benoit Boissinot
5562ddda56 fix regression on empty repo cloning introduced by d87e43563bf4
The store directory wasn't copied. Unconditionally create the directories
instead.
2008-08-29 16:50:11 +02:00
Martin Geisler
73f6ec8db1 qimport: report filename in case of IOError
The old behaviour was to say "abort: unable to read" since the
patchname variable was always None.
2008-08-26 00:04:18 +02:00
Stefano Tortarolo
2892a4755b Fix wrong redirection in test-rebase-parameters 2008-08-27 12:49:39 +02:00
Patrick Mezard
f0168e36a9 Merge with Gilles Moris 2008-08-24 22:40:34 +02:00
Gilles Moris
5d85996f85 Have verbose and debug flag print the changeset rev and hash when committing.
Besides updating the tests output, I had to push back at the end the test for
issue1193 in test-commit, solved by cset 31a0a36d6d95, because it was using the
current date for commit and was randomizing the subsequent hash.
2008-08-22 22:32:53 +02:00
Patrick Mezard
a8ac103268 Backed out changeset 0f390189b058
Replace this change with a better one.
2008-08-24 22:13:39 +02:00
Gilles Moris
4c144a2f64 Have verbose flag print the changeset hash when committing 2008-08-22 13:25:35 +02:00
Patrick Mezard
aee5d531f1 test-rebase-mq: '|' is a GNU sed extension, unfold it 2008-08-24 19:24:47 +02:00
Christian Ebert
ef7b051c64 keyword: avoid additional conflicts during merge/resolve
Make merge and resolve trigger kwtemplater.restricted to compare
data without keyword expansion.
The keyword stays outside the conflict:

$Keyword$
<<<<<<< local
bar
=======
foo
>>>>>>> other

and will again be expanded on commit.
Demonstrate in test case.
2008-08-22 08:26:18 +02:00
Dirkjan Ochtman
c29fabfbde merge with crew-stable 2008-08-21 19:05:18 +02:00
Christian Ebert
a72d3adc8a keyword: thorough hgweb testing
- test hgweb while keyword extension is _enabled_
- check expansion with hgweb.file
- besides log and diff, also check annotate for not expanding
2008-08-21 10:20:44 +02:00
Dirkjan Ochtman
3e077a5422 strip trailing whitespace, replace tabs by spaces 2008-08-21 11:35:17 +02:00
Dirkjan Ochtman
afa3084f5f hgweb: fix WSGI iterators handling in CGI adapter (issue1254) 2008-08-21 10:55:24 +02:00
Thomas Arendsen Hein
dd28190592 merge with crew-stable 2008-08-20 19:00:39 +02:00
Thomas Arendsen Hein
f8baf69ea4 merge with crew-stable 2008-08-20 15:05:43 +02:00
Maxim Dounin
1ce305a01e addremove: correctly handle intermediate symlinks
This fixes problems mentioned in issue660 comments (unrelated to original
issue) where directory was renamed, and symlink was added instead.
In such situation addremove wasn't able to correctly detect that old files
no longer here, but tried to add symlink (and failed due collision with
old files).
2008-05-07 14:32:00 +04:00
Patrick Mezard
574f71dd66 test-mq-qrename: test added patch renaming 2008-06-06 18:23:33 +02:00
Dirkjan Ochtman
ff7fe64e1f mq: don't update the working copy on strip if parents aren't stripped
* * *
2008-06-03 12:10:14 +02:00
Patrick Mezard
ea981a320c test-convert-mtn: test descriptions with quotes 2008-06-02 21:38:52 +02:00
Stefano Tortarolo
826bd6dc17 Active branches fix (issue1104) 2008-05-29 22:21:29 +02:00
Patrick Mezard
ada9662975 test-mq-merge: test mq merge and explicit patch queue 2008-05-24 18:11:34 +02:00
Dirkjan Ochtman
7b9076932b tests: don't run test-convert-cvs if there's no cvs server 2008-05-23 16:50:17 +02:00
Patrick Mezard
ae8e8e5874 test-mq: update qdiff summary output 2008-05-18 20:54:10 +02:00
Patrick Mezard
77b17b8e99 mq: make qselect fail properly on an empty guard 2008-05-18 17:01:24 +02:00
Dirkjan Ochtman
7863711fa6 mq: don't commit local changes on pushing empty patch (issue1087) 2008-04-16 16:04:07 +02:00
Patrick Mezard
6b3f1e7d00 test-merge-internal-tools-pattern: make executable 2008-04-14 23:21:27 +02:00
Patrick Mezard
f7c7c06863 convert: fix svn file copy detection code 2008-04-14 22:31:34 +02:00
Patrick Mezard
9d916aae03 convert: fix svn branch source detection corner case
It was confused by composite-looking revisions made by copy + remove.
2008-04-14 22:31:34 +02:00
Patrick Mezard
7914c93a87 convert: handle past or foreign partial svn copies
Subversion allows revisions to be composed of subparts coming from revisions
before the parent or from other part of the repository. There is no simple
representation for these now, keep the changes but do not track their origins.
2008-04-14 22:31:34 +02:00
Patrick Mezard
a5bba7499c convert: improve subversion branch filtering 2008-04-14 22:31:33 +02:00
Patrick Mezard
2b144ed542 test-convert-svn-branches: short identifiers are more legible 2008-04-14 22:31:33 +02:00
Dov Feldstern
2451adfa26 test that internal merge tools are used when set for a merge-pattern in hgrc
It is possible to specify that one of the internal merge tools (internal:fail,
internal:local or internal:other) should be used for performing merges on files
matching a given pattern. This test makes sure that such a setting actually
works.
2008-04-04 02:20:58 +03:00
Benoit Boissinot
e297c198c0 fix import with -p0 2008-04-12 22:41:07 -04:00
Patrick Mezard
7d3027f767 convert: check svn branches are directories 2008-04-07 11:59:20 +02:00
Adrian Buehlmann
94cd97b240 tests/test-diff-copy-depth: using sh instead of bash
test failed on plain FreeBSD 6.2 due to nonexistent bash
2008-04-07 09:02:26 +02:00
Patrick Mezard
f572ee0b5f dirstate: do not ignore current directory '.' (issue 1078) 2008-04-05 18:15:04 +02:00
Patrick Mezard
8e0cbccd26 Let --unified default to diff.unified (issue 1076) 2008-04-04 22:15:14 +02:00
Dirkjan Ochtman
95639b6467 hgweb: make hgwebdir work in the absence of PATH_INFO
Thanks to Andrea Arcangeli for reporting and an initial patch.
2008-04-03 13:14:43 +02:00
Thomas Arendsen Hein
a8733ad91a make test-diff-copy-depth executable 2008-04-02 21:45:35 +02:00
Peter Arrenbrecht
898046c9b1 convert: fix test-convert-svn-* problems with mtime not changing
The `svn commit` command does not detect changed files unless
their mtime has changed. A quick succession of, for instance,
`svn co ...; echo x >> y; svn ci` can thus lead to the change to y
being ignored.

Edited by pmezard to write in binary mode.
2008-04-01 09:17:11 +02:00
Thomas Arendsen Hein
448785c6b4 merge with hg-stable 2008-04-01 08:33:17 +02:00
Thomas Arendsen Hein
330a183096 Fix test-convert-svn-tags on case sensitive filesystems 2008-03-30 23:58:02 +02:00
Patrick Mezard
2a688097e7 commands: fix shadowed repo module 2008-03-30 20:18:40 +02:00
Brendan Cully
7e5542bf1f Debashify rebase tests 2008-08-19 18:07:26 -07:00
Matt Mackall
09385b3219 Fix up tests 2008-08-18 16:50:36 -05:00
Stefano Tortarolo
a60c518854 Add rebase extension 2008-08-18 21:16:31 +02:00
Matt Mackall
9b20862a98 store: simplify class hierarchy 2008-08-13 20:18:43 -05:00
Adrian Buehlmann
6041ce9b15 add test-verify 2008-08-13 20:18:41 -05:00
Stefano Tortarolo
61967725af make commit fail when committing unresolved files 2008-08-13 20:18:40 -05:00
Patrick Mezard
0eba22ee63 convert: implement startrev for hg source 2008-08-13 23:31:10 +02:00
Dirkjan Ochtman
6b51480caa merge with crew-stable 2008-08-12 17:47:08 +02:00
Matt Mackall
08b29d9875 Merge with stable
Simplify the copy search algorithm
2008-08-10 18:38:43 -05:00
Stefano Tortarolo
5388b1792f Add ancestors and descendants to revlog
This patch adds two methods to revlog:
- ancestors: given a list of revisions returns their ancestors
- descendants: given a list of revisions return their descendants
2008-07-19 18:19:50 +02:00
Thomas Arendsen Hein
b88ac9c741 merge with crew-stable 2008-08-08 18:49:55 +02:00
Christian Ebert
5f30d91aa9 keyword: add verify to nokwcommands after refactor in 3fd7bf0cb4ce
Add test as well.
Thanks to Guy Brand for spotting this.
2008-08-07 09:53:57 +02:00
Brendan Cully
a6d56747f2 Fix intermittent broken pipe in test-highlight 2008-08-06 15:08:18 -07:00
Patrick Mezard
d5320d378a Merge with crew-stable 2008-08-02 23:45:10 +02:00
Patrick Mezard
a7fffbf6bb Merge with crew-stable 2008-07-30 22:33:40 +02:00
Benoit Boissinot
664b2fafe8 merge with -stable 2008-07-23 16:14:45 +02:00
Matt Mackall
8cb2b4a288 dirstate.walk: push sorting up 2008-07-22 13:03:19 -05:00
Patrick Mezard
49cd301d4b Merge with crew-stable 2008-07-20 21:51:13 +02:00
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
Patrick Mezard
9cb9c8c81f Merge with crew-stable 2008-07-07 09:31:32 +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
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
9f2ed6feaf merge with main 2008-07-02 09:31:13 +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
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
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
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
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
bc715be859 add __len__ and __iter__ methods to repo and revlog 2008-06-26 14:35:50 -05:00
Matt Mackall
fbb5127472 use repo[changeid] to get a changectx 2008-06-26 14:35:46 -05:00
Matt Mackall
5867ff1667 use repo.changectx(None) to get a workingctx 2008-06-26 13:46:29 -05:00
Matt Mackall
0a211cf39a context: consistently return p1 context for None 2008-06-25 17:33:51 -05:00
Matt Mackall
9ab99468a9 lookup: optimize '.'
Remove error messages as behavior is documented in hg help revs
2008-06-25 17:33:34 -05:00
Dirkjan Ochtman
a2fa8fc7e2 fix dumb test failure introduced in 31fe61a80219 2008-06-25 10:37:07 +02:00
Dirkjan Ochtman
bf8b01e844 merge: only in-branch merges can be implicit 2008-06-23 15:02:52 +02:00
Patrick Mezard
31cc575735 test-commit: test unset date is not read as epoch origin 2008-06-23 10:36:00 +02:00
Patrick Mezard
93bb017ccb convert: hg sink commits without working dir 2008-06-19 00:14:24 +02:00
Patrick Mezard
67c45a2700 context: let workingctx.date(), .user() and description() be overriden 2008-06-18 22:52:26 +02:00
Dirkjan Ochtman
bb2114f00f tests: make new convert-cvs tests executable 2008-06-18 12:38:45 +02:00
Dirkjan Ochtman
a74c0e9f94 tests: fix test breakage from graph template changes 2008-06-18 11:08:21 +02:00
Frank Kingswood
6c0cfe8797 convert: cvs.py - Allow user to use built-in CVS changeset code.
tests: add two testcases for CVS conversion with builtin CVS
including a testcase for issue 1148.
2008-06-15 16:05:46 +01:00
Thomas Arendsen Hein
393614fcfa merge with crew-stable 2008-06-16 11:51:19 +02:00
Patrick Mezard
1fa87a95fd Merge with crew-stable 2008-06-15 13:05:39 +02:00
Christian Ebert
dba21309cf keyword: mimic cmdutil.bail_if_changed even more
At the check before overwriting with kwexpand, kwshrink:
- abort when in middle of merge
- give terser abort message
2008-06-12 02:27:06 +02:00
Matt Mackall
9861703d4b tag: record tag we're superseding, if any (issue 1102) 2008-06-13 17:29:10 -05:00
Jason Orendorff
1b4f863a3f mq: qdiff: support all diffopts 2008-06-12 07:38:15 -05:00
Christian Ebert
a2f0369b37 keyword: disable expansion for annotate
Keyword expansion should not be annotated.
Annotate revision when unexpanded keyword was inserted.

Add test.
2008-06-12 11:01:36 +02:00
Matt Mackall
dccdda4480 Merge with crew 2008-06-10 12:11:06 -05:00
Dirkjan Ochtman
cd5e863912 hgweb: show cset node and description when hovering over annotate prefix 2008-06-07 17:52:00 +02:00
Patrick Mezard
a19a271534 Merge with crew-stable 2008-06-07 11:43:16 +02:00
Matt Mackall
ded6ff0bc4 copies: teach copies about dirstate.copies
When we're using copies() to find changes between the working directory and
its first parent for diff/status/etc., use dirstate.copies() directly.

This avoids doing a full statwalk for simple diffs (issue1090) and
removes a special case from the status command.
2008-06-03 15:41:09 -05:00
Johannes Stezenbach
fd4475d65a help: move "revision syntax" help topics into online help
Move the "Specifying Single Revisions" and "Specifying Multiple
Revisions" help topics from the manual page into the helptable
so they are available both online and in the manual page.
2008-06-03 21:20:52 +02:00
Johannes Stezenbach
cb9002a114 help: list special help topics with -v 2008-06-03 20:56:54 +02:00
Patrick Mezard
e8f9e548cb Merge with crew-stable 2008-06-06 18:31:57 +02:00
Dirkjan Ochtman
466179d35f mq: introduce the qfinish command 2008-06-03 09:34:14 +02:00
Dirkjan Ochtman
2cac185fe4 merge from crew-stable 2008-06-03 12:27:48 +02:00
Patrick Mezard
495db7d2e2 Merge with crew-stable 2008-06-02 21:42:16 +02:00
Dirkjan Ochtman
d5bb71e5c9 merge from crew-stable 2008-05-29 22:23:33 +02:00
Christian Ebert
1011bbaea8 Make test-bundle-type work on MacOS 10.4.11
head on MacOS Tiger doesn't have a -c option.
2008-05-29 16:29:28 +02:00
Patrick Mezard
352a46be1d localrepo: fix partial merge test (issue 1111) 2008-05-28 22:45:07 +02:00
Patrick Mezard
1c417db0b5 Merge with crew-stable 2008-05-24 18:23:13 +02:00
Patrick Mezard
49ab85e83f Merge with crew-stable 2008-05-18 23:49:33 +02:00
Matt Mackall
fb88571d19 match: remove files arg from repo.status and friends 2008-05-12 11:37:08 -05:00
Matt Mackall
7a52386b9e walk: return a single value 2008-05-12 11:37:08 -05:00
Matt Mackall
525eaf2be0 walk: remove more old badmatch logic 2008-05-12 11:37:08 -05:00
Matt Mackall
fb724552a5 walk: pass match object to cmdutil.walk
- introduce cmdutil.match
- change args to cmdutil.walk
- create match objects for walk calls
2008-05-12 11:37:07 -05:00
Benoit Allard
05751ba685 add compression type type parameter to bundle command 2008-04-24 17:16:02 +02:00
Dirkjan Ochtman
8b56cfd1ea tests: fix test-highlight output, changed in 7ebbe90114ae 2008-04-24 11:43:54 +02:00
Dirkjan Ochtman
f70807073f merge from crew-stable 2008-04-16 16:07:15 +02:00
Patrick Mezard
08be82588e Merge with crew-stable, fix test output 2008-04-14 23:28:50 +02:00
Patrick Mezard
acfe08ba86 Merge with crew-stable 2008-04-14 23:04:34 +02:00
Matt Mackall
619e79c725 Merge with -stable 2008-04-13 11:31:45 -05:00
Benoit Boissinot
60caa13781 merge with -stable 2008-04-12 23:05:51 -04:00
Bryan O'Sullivan
1234e5c53b test-imerge: disable due to massive brokenness 2008-04-11 22:17:20 -07:00
Matt Mackall
edf5a0f5d0 resolve: new command
- add basic resolve command functionality
- point failed update and merge at resolve
2008-04-11 12:52:56 -05:00
Adrian Buehlmann
00f3faf7cc fixed missing sorting in test-dumprevlog
The test failed at random because the order of files was non-deterministic,
which produced diffs in test output.
2008-04-11 09:27:28 +02:00
Patrick Mezard
0ec4a6ad34 test-dumprevlog: fix extra path separator under MacOSX
The "find .hg/store/ -name '*.i'" command returned paths with extra separators
like '.hg/store//00changelog.i'.
2008-04-11 11:21:55 +02:00
Matt Mackall
8d82cba09a merge: introduce mergestate 2008-04-10 15:02:24 -05:00
Dirkjan Ochtman
8e0e741a7c python-2.6: md5 import in test-archive helper 2008-04-08 15:41:21 +02:00
Patrick Mezard
4f5e5e015a Merge with crew-stable 2008-04-07 13:16:11 +02:00
Dirkjan Ochtman
e31d0e46c9 Merge from crew-stable. 2008-04-07 09:26:40 +02:00
Isaac Jurado
ec51524d45 highlight: Generate pygments style sheet dynamically
This patch allows a per-repository (for example, within a hgwebdir) selection
of pygments_style web option.  No static .css files required.

Test edited by pmezard (compatibility fixes)
2008-04-05 21:29:02 +02:00
Patrick Mezard
6cb37d1b54 Merge with macencode branch 2008-04-05 19:33:34 +02:00
Patrick Mezard
5f02ff8613 test-mactext: simplify test, coverage is ensured by win32text tests 2008-04-05 19:03:45 +02:00
Patrick Mezard
ad00fc6726 Merge with crew-stable 2008-04-05 18:19:49 +02:00
Thomas Arendsen Hein
82ad00cdba Make tests/test-dumprevlog executable 2008-04-05 00:11:36 +02:00
Thomas Arendsen Hein
7528210be5 merge with main 2008-04-05 00:04:50 +02:00
Dirkjan Ochtman
ea3191d104 mq: add --force option to strip 2008-04-04 17:44:31 +02:00
Dirkjan Ochtman
34d6bea8db python 2.6 compatibility: compatibility wrappers for hash functions 2008-04-04 22:36:40 +02:00
Patrick Mezard
2a9d095734 Merge with crew-stable 2008-04-04 22:18:38 +02:00
Adrian Buehlmann
5c85e0dcee add tests for contrib/dumprevlog and undumprevlog 2008-04-03 17:17:39 +02:00
OHASHI Hideya
3cdbbe36e4 win32text: Add macencode/macdecode 2008-04-03 20:41:31 +09:00
Dirkjan Ochtman
9700c3ce4c tests: easier error diagnostics for test-serve 2008-04-03 12:46:37 +02:00
Dirkjan Ochtman
67493fd86d Merge from crew-stable. 2008-04-03 13:21:42 +02:00
Thomas Arendsen Hein
cd73c3d67a merge with crew-stable 2008-04-02 21:46:30 +02:00
Bryan O'Sullivan
f8a82de0aa test-churn: force COLUMNS to be set 2008-04-02 08:56:38 -07:00
Christian Ebert
2da59c83a3 Consistently 1 space after full stops in command doc strings
Update test output accordingly.
2008-04-02 14:03:16 +02:00
Patrick Mezard
c9239a49e0 Merge with crew-stable 2008-04-01 10:19:49 +02:00
Matt Mackall
74e8b50e35 Merge with stable 2008-03-31 21:49:26 -05:00
Benoit Boissinot
8042e0ac71 hg serve: add clearer message when starting the server with --verbose
Explicitly tell the address is the one the process is bound to.
Fix the printing of IPv6 addresses.
2008-03-31 18:44:12 +02:00
Matt Mackall
c9895536f8 copies: skip directory rename checks when not merging
The directory rename checks are not meaningful unless we're moving or copying
files across a branch during a merge.
2008-03-29 12:39:47 -05:00
Matt Mackall
1b20d834b6 copies: sort old names by depth 2008-03-29 12:39:47 -05:00
Matt Mackall
8a7d38f2e2 backout: reverse changeset belongs on current branch
Backing out a changeset that is before a named branch branchpoint was
making the reverse changeset the tip of the old branch, which is wrong
and very confusing. So instead, we put it on the current named branch.
2008-03-29 12:39:47 -05:00
Patrick Mezard
d556aa96d4 test-convert-svn-source: remove redundant tests 2008-03-29 17:16:39 +01:00
Patrick Mezard
664a12a36c convert: allow tags detection to be disabled
Tags calculation becomes more reliable but slower, measurable on frequent
synchronizations.
2008-03-29 17:16:18 +01:00
Patrick Mezard
686a0f8465 convert: follow svn tags history (issue953) 2008-03-29 17:15:45 +01:00
Patrick Mezard
05b7b4915e Add a test for svn tags conversion 2008-03-29 17:15:43 +01:00
Patrick Mezard
da284c98c8 test-convert-mtn: test directory deletion 2008-03-29 17:14:47 +01:00
Bryan O'Sullivan
c8e33b9c63 Tests for issue 1049 2008-03-24 15:50:58 -07:00
Bryan O'Sullivan
776bc63f5b commit: when committing the results of a merge, it's all or nothing
Previously, it was possible to commit just one file from a merge, which
is essentially always the wrong thing to do.  This fixes issue 1049.
2008-03-24 15:36:56 -07:00
Thomas Arendsen Hein
ae74a1c929 Skip older monotone versions for tests.
test-convert-mtn is known to work with 0.37 and 0.38, but fails with
0.31 (Debian etch). hghave now skips all versions up to 0.31.
2008-03-24 22:49:33 +01:00
Thomas Arendsen Hein
818fb02fb9 run-tests.py: Only one fail message when output changed and error code.
This fixes passing back fail messages mistaken for skip messages when
running with parallel jobs because run_children() only expects one message per
fail.
2008-03-24 22:09:01 +01:00
Thomas Arendsen Hein
5690af9ff7 Fix missing space in one of the new update messages. 2008-03-24 20:28:13 +01:00
Matt Mackall
5c0b28f679 Merge with crew 2008-03-24 11:12:57 -05:00
Patrick Mezard
91f7424c6f test-convert-mtn: test directory move 2008-03-24 17:02:31 +01:00
Patrick Mezard
d098a6938d convert: record deleted files in monotone source 2008-03-24 17:02:08 +01:00
Matt Mackall
fb8b59de16 update: better logic and messages for updates
- complain about attempts to merge with ancestor
- when updating, differentiate between
  - crossing named branches with no local changes (jump)
  - crossing named branches with local changes (complain)
  - nonlinear update on the same named branch, no changes (complain some more)
  - nonlinear update on the same named branch, changes (different complaining)
2008-03-24 10:01:05 -05:00
Patrick Mezard
fe0eb5235b Add a test for monotone conversion 2008-03-23 23:18:20 +01:00
Dirkjan Ochtman
056bb10b17 hgweb: better error messages 2008-03-23 23:08:18 +01:00
Thomas Arendsen Hein
702b9172d1 run-tests.py: Allow environment variables to set jobs/timeout/port. 2008-03-23 21:48:38 +01:00
Patrick Mezard
d458f6f4af test-imerge: test resolve subcommand 2008-03-23 20:37:04 +01:00
Patrick Mezard
e54f2a771f imerge: replace "merge" with "internal:merge" when non-interactive 2008-03-23 20:37:02 +01:00
Patrick Mezard
56154985f7 test-mq-symlinks: skip if symlinks are not supported 2008-03-23 16:07:27 +01:00
Florent Guillaume
a17c5f228a test-notify: make it pass on Mac OS X 10.5 2008-03-23 01:23:03 +01:00
Florent Guillaume
d5f64814b4 test-remove: make tests really pass
Ah, the joys of cross-platform shell scripting...
2008-03-23 01:13:56 +01:00
Florent Guillaume
8a0668790f test-remove: fix for non-gnu find 2008-03-23 01:04:51 +01:00
Florent Guillaume
37434df8b2 test-remove: make it pass on Mac OS X 10.5 2008-03-22 21:13:22 +01:00
Dirkjan Ochtman
a3c9e25c1e tests: add highlight extension tests 2008-03-22 20:16:30 +01:00
Dirkjan Ochtman
5f60a364ae tests: add tests for hgweb to test-keyword 2008-03-22 18:33:10 +01:00
Matt Mackall
9454e6e5aa update: no -C needed to switch branches without outstanding changes 2008-03-22 13:30:08 -05:00
Patrick Mezard
60bc8be0a8 coverage: deal with symlinked input paths (MacOSX issue)
/tmp is symlinked in MacOSX therefore test scripts as well as python modules
are installed in a symlinked location. coverage.py uses abspath() to normalize
its inputs which fails if these are referencing real paths. Use realpath()
instead.
2008-03-22 19:01:09 +01:00
Patrick Mezard
449fc02367 Make churn an official extension 2008-03-22 18:01:46 +01:00
Dirkjan Ochtman
2778ac21ea improved semantics for remove (issue438)
- Added files are never deleted (only removed with --force).
- Modified files can only be removed with --force.
- With --after, only deleted files are removed.
- With --after --force, all files are removed but not deleted.
2008-03-22 10:07:49 +01:00
Matt Mackall
a3c45346bb test: fix mixing exec bit on test-hgwebdirsym 2008-03-21 17:22:47 -05:00
Matt Mackall
16115cc42c tests: make test-rebuildstate repeatable 2008-03-21 15:57:22 -05:00
Matt Mackall
f9e70fb40e tests: teach -i about fails list 2008-03-21 15:57:22 -05:00
Matt Mackall
647da75fbe tests: make test-convertcvs repeatable 2008-03-21 15:57:22 -05:00
Eric Hopper
c1929a9601 test: Add tests for webdir symlinks and walkrepos. 2008-03-21 08:46:15 -07:00
Matt Mackall
dc1cdafff7 mq: warn when applying a patch to somewhere other than tip 2008-03-21 15:44:11 -05:00
Adrian Buehlmann
153675561e clone: print "updating working directory" status message
With this change, "hg clone" looks like this:

% hg clone http://example.com/repo/big big
requesting all changes
adding changesets
adding manifests
adding file changes
added XXX changesets with XXX changes to XXX files
updating working directory
XXX files updated, XXX files merged, XXX files removed, XXX files unresolved

So the user sees

% hg clone http://example.com/repo/big big
requesting all changes
adding changesets
adding manifests
adding file changes
added XXX changesets with XXX changes to XXX files
updating working directory

while Mercurial is writing to disk to populate the working directory

With this change, "hg clone" looks like this:

% hg clone big big-work
updating working directory
XXX files updated, XXX files merged, XXX files removed, XXX files unresolved
2008-03-21 14:52:24 +01:00
Dirkjan Ochtman
c9f3b5991c give better error message on non-existent mapfile (issue813) 2008-03-21 12:05:01 +01:00
Dirkjan Ochtman
3e3b0d62eb warn about new heads on commit (issue842) 2008-03-21 11:06:02 +01:00
Dirkjan Ochtman
d049a05886 hgweb: only accept POST requests for unbundle 2008-03-21 00:55:53 +01:00
Dirkjan Ochtman
187ae17c7e fix test-serve breakage for other hostnames 2008-03-20 22:58:53 +01:00
Matt Mackall
cbb0bb78a6 tests: fix repeatability for test-filebranch with dirstate granularity 2008-03-20 15:59:54 -05:00
Matt Mackall
49e96f2d3e tests: remove some unnecessary sleeps 2008-03-20 14:14:15 -05:00
Matt Mackall
c517f4bb58 dirstate: refactor granularity code, add a test
- rename option dirstate.granularity
- move option reading into .write()
- add a simple test
2008-03-20 13:53:59 -05:00
Alexis S. L. Carvalho
d40b29d203 dirstate: ignore stat data for files that were updated too recently
This should fix the race where

  hg commit foo
  <change foo without changing its size>

happens in the same second and status is fooled into thinking foo
is clean.

A configuration item is used to determine the timeout, since different
filesystems may have different requirements (I think VFAT needs 3s,
while most Unix filesystems are fine with 1s).
2008-03-19 17:55:21 -03:00
John Coomes
7b1227d192 tag: allow multiple tags to be added or removed
- Example:  "hg tag -r 42 build-25 beta-1" will add tags build-25 and beta-1
  for rev 42.
- The deprecated and undocumented usage "hg tag arg1 arg2" used to emit a
  warning, then add tag arg1 for rev arg2 (equivalent to "hg tag -r arg2 arg1").
  It will now add tags arg1 and arg2 for the current revision.
- If one tag triggers an error, no tags are added/removed (all or nothing).
2008-03-14 15:38:56 -07:00
Giorgos Keramidas
3831b4f59e tests: update test-command-template for the new {isodatesec} filter 2008-03-17 19:28:46 +02:00
John Mulligan
8c882ea990 Add tests for cloning from a all-history bundle 2008-03-15 12:22:15 -04:00
Matt Mackall
ab757b1627 convert: fix test complaint for mtn bits 2008-03-20 11:12:35 -05:00
Alexis S. L. Carvalho
d1ab1c350e Fix thinko in test-inherit-mode
If we don't change any rwx bit in the last test, hg will skip the
calls to chmod since it'll assume they're not needed.

This might fix things on BSD systems.
2008-03-18 18:14:59 -03:00
Patrick Mezard
6d9511f197 test-serve: replace copy/paste with shell function 2008-03-17 16:15:43 +01:00
Alexis S. L. Carvalho
f5a37c37de revert: update state of files in the "checkout" list
This can make a difference when there are filters involved and

    decode(encode(working-dir-data)) != working-dir-data

even though

    encode(decode(repo-data)) == repo-data

An example is a working dir file that uses only \n when you're using
the win32text extension.
2008-03-18 04:07:39 -03:00
Alexis S. L. Carvalho
dc7b734ee2 normallookup: during merges, restore the state saved by remove 2008-03-18 04:07:39 -03:00
Alexis S. L. Carvalho
cfe6940b56 dirstate.remove: during merges, remember the previous file state
We encode the previous state as a negative file size (AFAICS, previous
versions of hg always have size == 0 when state == 'r').

We save the state of 'm'erged and dirty files, because they're the
two states that indicate that a file has to be committed on a merge
to correctly record per-file history.
2008-03-18 04:07:39 -03:00
Alexis S. L. Carvalho
21fa54fe2f debugstate: add --nodates
This can be useful for tests.
2008-03-18 04:07:39 -03:00
Patrick Mezard
d65e9c81dd patch: fix corner case with update + copy patch handling (issue 937)
The self patching of files when diffed with a backup is a bit peculiar to me.
It makes sense in mpatch, that's less clear in mercurial patching code. Let's
document and preserve it for now.
2008-03-17 23:36:45 +01:00
Alexis S. L. Carvalho
dd492604df filectx.ancestor: use fctx._repopath to cache filelogs (issue1035)
_repopath may be different from _path for workingfilectx when there
are renames involved.
2008-03-16 06:10:47 -03:00
Alexis S. L. Carvalho
03368f5190 Revert 854bf5451519, fixing the output of 2 tests 2008-03-15 22:03:18 -03:00
Alexis S. L. Carvalho
dd2922fa95 test-mv-cp-st-diff: avoid linkrev collisions
The copy detection code relies heavily on the linkrevs, so it's better
to avoid collisions in this test.
2008-03-15 22:03:18 -03:00
Patrick Mezard
107a228e2f patch: check filename is /dev/null for creation or deletion (issue 1033)
Otherwise, file creation or deletion is ambiguous with file being filled or
emptied.
2008-03-16 00:35:12 +01:00
Matt Mackall
9f54c46920 update tests for copy detection changes 2008-03-15 16:51:53 -05:00
Matt Mackall
fac4139990 copies: add tests for status -C/diff --git
This goes through 42 combinations of copy/rename branch/parent/working dir.
2008-03-15 16:49:27 -05:00
Alexis S. L. Carvalho
e42ba91ec9 hook.py: fix redirections introduced by 59a5ced38398
The only non-obvious part is the use of sys.{__stderr__,__stdout__},
which is needed because sshserver overrides sys.stdout.

This makes a test that I added back in revision d71c96fd819f ineffective.
2008-03-14 21:57:46 -03:00
Thomas Arendsen Hein
12e60b5991 adjust test-http output to non-default HGPORT, e.g. with run-tests.py -j 2008-03-14 23:51:58 +01:00
Stephen Deasey
b6ba89dcec hgweb: clarify which address and port can/cannot be bound at startup (bug 769)
The error message at startup when the address/port could not be bound
was confusing:

    hg serve
    abort: cannot start server: Address already in use

Be more explicit:

    $ hg serve -a localhost
    abort: cannot start server at 'localhost:8000': Address already in use

Also be more explicit on success, showing hostname and ip address/port:

    $ hg -v serve -a localhost -p 80
    listening at http://localhost/ (127.0.0.1:80)


We are careful to handle a missconfigured machine whose hostname does not
resolve, falling back to the address given at the command line.

Remove a dead-code error message.
2008-03-10 19:25:34 +00:00
Alexis S. L. Carvalho
6f8858904c Fix issue995 (copy --after and symlinks pointing to a directory)
I haven't looked at other places that call os.path.isdir to make
sure they're OK.
2008-03-14 10:32:19 -03:00
Alexis S. L. Carvalho
fa062ecb4c merge: require --force when there are deleted files 2008-03-14 09:56:58 -03:00
Alexis S. L. Carvalho
43ac0bffb6 add a test for 6acd9ff3f1ac 2008-03-14 09:56:58 -03:00
Alexis S. L. Carvalho
4789a32b07 localrepo.commit: normalize commit message even for rawcommit.
This normalization consists of:
- stripping trailing whitespace
- always using "\n" as the line separator

I think the main reason rawcommit was skipping this normalization was
an attempt to preserve hashes during an hg->hg conversion.

While this is a nice goal, it's not particularly interesting in
practice.  Since SHA-1 is so strong, the only safe way to do it is to
have absolutely identical revisions.  But:

- if the original revision was created with a recent version of hg,
  the commit message will be the same, with or without that
  normalization

- if it was created with an ancient version of hg that didn't do any
  normalization, even if the commit message is identical, the file list
  in the changelog is likely to be different (e.g. no removed files),
  and there were some old issues with e.g. extra file merging, which
  will end up changing the hash anyway

- in any case, if one *really* has to preserve hashes, it's easier
  (and faster) to fake a partial conversion using something like:

  hg clone -U -r rev orig-repo new-repo
  hg -R new-repo log --template '#node# #node#\n' > new-repo/.hg/shamap

Additionally, we've had some reports of problems arising from this lack
of normalization - e.g. issue871, and a user that was wondering why
hg export/hg import was not preserving hashes when there was nothing
unusual going on (it was just import doing the normalization that had
been skipped).

This also means that it's even more unlikely to get identical revisions
when going $VCS->hg->$VCS.
2008-03-14 09:56:58 -03:00
Alexis S. L. Carvalho
88defcf937 update output of test-hgweb 2008-03-14 09:56:58 -03:00
Thomas Arendsen Hein
597f358322 adjust test-fetch output to non-default HGPORT, e.g. with run-tests.py -j 2008-03-14 01:39:15 +01:00
Benoit Boissinot
3a35d838ed run-tests.py: add a summary of failed tests at the end 2008-03-13 17:39:30 +01:00
Patrick Mezard
b31dc66c25 convert: rename MAPFILE into REVMAP to disambiguate with filemap 2008-03-12 23:21:01 +01:00
Thomas Arendsen Hein
61fdf43543 Add tests for the fixes to issue1014 (fractional timezones) 2008-03-12 22:20:10 +01:00
Thomas Arendsen Hein
36ad657bd7 test-fetch failed due to non-zero exit code 2008-03-12 09:04:20 +01:00
Matt Mackall
865487e7f2 revlog: report node and file when lookup fails 2008-03-11 17:42:29 -05:00
Bryan O'Sullivan
f9f5e47a2f fetch: don't proceed if working directory is missing files (issue988) 2008-03-11 11:38:12 -07:00
Peter Arrenbrecht
33ae436dd8 hgweb: fix test results missed by 6218:94688fe8c7c3 2008-03-07 08:38:07 +01:00
Joel Rosdahl
9c3f9d4bd6 imerge: Fix unbound name error and add a test case 2008-03-06 22:23:41 +01:00
Joel Rosdahl
4f8012378a Remove unused imports 2008-03-06 22:23:41 +01:00
Thomas Arendsen Hein
deb94bc7fe Removed trailing spaces from everything except test output 2008-03-07 00:24:36 +01:00
Thomas Arendsen Hein
9ff01ae3fe Replaced tab in run-tests.py 2008-03-07 00:01:13 +01:00
Peter Arrenbrecht
85ef77aca1 tests: add --keep-tmp to run-tests.py to debug test environment
When set, you can find the working dir of the test run as a
uniquely named subdirectory of --tmpdir so you can inspect
it.
2008-03-05 08:00:05 +01:00
Bryan O'Sullivan
7ccd4e897d fetch: make test reproducible, tiny code cleanup 2008-03-05 09:20:57 -08:00
Bryan O'Sullivan
d160458ee9 fetch: switch the default parent used for a merge
This treats newly pulled changes as authoritative, and local changes as
the "satellite" changes.

The prior default behaviour is still available, via the --switch-parent
option.
2008-03-05 09:10:45 -08:00
Peter Arrenbrecht
b99cdae6e3 mq: test for qclone of http repo+queue
tests 4fa9f56bd8a3 and 4afb45fca538
2008-03-03 21:48:43 +01:00
Jesse Glick
5a5b96808a When failing to load an extension, show where Hg tried to load it from. 2008-03-03 12:46:57 -05:00
Thomas Arendsen Hein
d291778049 test-status: Make assert function definition sh compatible. 2008-03-02 20:54:00 +01:00
Thomas Arendsen Hein
d659d68d7a Extend/correct f488b5acd598 regarding -qA and ignored files.
hg status -qA will now hide untracked files as described in the doc string.
2008-03-02 13:52:34 +01:00
Zoran Bosnjak
ddaa8e2b8b 'hg status -q' output skips non-tracked files.
The '-q' flag was ignored in status command. But this flag
can be used to hide non-tracked files in hg status output.
This small correction makes status command more general,
similar to 'svn status', where '-q' flag has the same effect.

The '-u' and '-A' flags have priority over '-q'.

A testcase and doc-string for status was extended to cover
'-q' flag.
2008-03-01 22:30:03 +01:00
Thomas Arendsen Hein
5ef42250f9 Add option -l/--limit to hg incoming and hg outgoing. 2008-02-29 02:15:31 +01:00
Thomas Arendsen Hein
da3b50be51 Add config option to disable putting .hg_archival.txt inside archives. 2008-02-28 22:39:59 +01:00
Dirkjan Ochtman
90d248f9a6 warning on push should mention heads, not branches
This makes the concept easier to relate to similar messages given on pull,
and allows for a distinction between heads and (named) branches.
2008-02-28 17:51:04 +01:00
Patrick Mezard
d5040b6003 patch: fix iterhunks() with trailing binary file removal
Like some renames or copy operations, binary file removal does not generate any
"file" or "hunk" action, but was not tagged as such and let iterhunk() assume
no hunk was applied for the deleted file.
2008-02-28 00:07:37 +01:00
Thomas Arendsen Hein
f4fe19c813 Renamed "manifest" to "files" in web templates.
manifest.tmpl is still used, so people having their own templates don't have
to change them. "cmd=manifest" still works, new style URLs are not affected,
because they already used "/file/".
2008-02-26 22:42:37 +01:00
Jesse Glick
cf2fd9f31a Permit XML entities to be escaped in template output.
Useful for creating XML documents directly from Hg logging. Can also be used for
HTML. For use in content, will escape '&', '<', and for completeness '>'
(although it is not strictly necessary). For use in attributes, will also escape
' and ". Will also replace nonprinting (ASCII) control characters with spaces,
since these are illegal in XML.
2008-01-28 22:19:12 -05:00
Patrick Mezard
1bee8eb741 convert: add shallow, single branch svn conversions via svn.startrev 2008-02-24 17:58:55 +01:00
Patrick Mezard
e6c6545487 convert: allow svn trunk/branches/tags detection to be skipped
- eluding convert.svn.branches defaults to "branches"
- convert.svn.branches= disables branches detection
- convert.svn.branches=/ is equivalent to former convert.svn.branches=
2008-02-24 17:58:53 +01:00
John Mulligan
868fd6b157 Add --all option to bundle command 2008-02-21 08:24:58 -05:00
Patrick Mezard
7a9633ffc5 Fix test-convert.out after 7258ee216b30 2008-02-23 19:37:44 +01:00
Dirkjan Ochtman
b1672f1ac2 hgweb: fix parameter mixup (issue1001) 2008-02-23 11:19:59 +01:00
Dirkjan Ochtman
6297ff3f5b tests: easier hg serve error diagnosis 2008-02-23 11:18:34 +01:00
Thomas Arendsen Hein
66db9ab9a2 Document log date ranges and mention 'hg help dates' for all commands (issue998) 2008-02-22 21:18:48 +01:00
Thomas Arendsen Hein
9db0aea4ab Add test case for backout on named branches (issue665) 2008-02-22 11:28:14 +01:00
Gilles Moris
09841be9f6 Reverse the way backout is doing the merge
Currently, backout is creating a backout revision as a child node of the
backed out node and will leave you at this new head. This has several
drawbacks:
* this changes the current head
* when there is a long history between the backed out node and the
current head, this will generate a huge number of diffs that are scary
at first sight, and not very natural to review before commit.
The change consists to switch back to the original node as soon as the
backout node (which becomes the new tip) has been created. Then the
--merge option can just merge this new tip in the current node.
* the current head/node is not changed from the user's point of view
* even without using the --merge option, the backout revision is still
easy to locate, as this is the tip
* the merge is much more intuitive as diffs of the merge is right you
are looking to backout
2008-02-21 08:52:52 +01:00
Alexis S. L. Carvalho
5cae264d5a tests: hide the name of the branch cache file 2008-02-21 16:22:31 -03:00
Alexis S. L. Carvalho
a34bc213b5 test-mq-pull-from-bundle: don't print the contents of $HGRCPATH 2008-02-21 16:22:31 -03:00
Alexis S. L. Carvalho
e8fbf94f2c repo.status: also compare flags for files in the lookup list.
We might be able to do something smarter about this in dirstate.status
for files in normallookup state, but that would require some extra
care to keep backwards compatibility.
2008-02-21 16:22:31 -03:00
Alexis S. L. Carvalho
c028f52c83 keyword: remove "identify" and "remove" from nokwcommands
These two commands care about the list of modified files returned
by repo.status and we may need to do a full content comparison to
populate that list.
2008-02-21 16:22:31 -03:00
Alexis S. L. Carvalho
ab8ab21710 test-glog: pass the list of files to commit
test-glog uses debugsetparents instead of update+merge to create
some funky DAGs, and so the dirstate contents won't be consistent
with the checked out revision.

Passing an explicit list of files to commit reduces a bit the
dependency on the dirstate.

Using a non-deprecated rawcommit might be better here.
2008-02-21 16:22:31 -03:00
Bryan O'Sullivan
feae4e35dd Merge with crew 2008-02-20 13:38:16 -08:00
Alexis S. L. Carvalho
6b25d3970d update output of test-convert 2008-02-19 19:34:18 -03:00
Jesse Glick
d21d195944 Infer a --repository argument from command arguments when reasonable.
In particular: if invoked without -R from a CWD not inside a repo, having been
passed one or more file paths as command arguments, where the nearest enclosing
repo of all of those paths is the same, quietly infer a -R option for that repo.
Otherwise abort with an error message as before.
2008-01-25 04:11:32 -05:00
Thomas Arendsen Hein
a1c1677af4 Fix bad behaviour when specifying an invalid date (issue700)
commit (aborts _after_ typing in a commit message)
backout (aborted after the initial revert)
tag (edited .hgtags and couldn't commit)
import (patch applied, then commit fails)
qnew (aborts on bad dates, but writes any valid date into the # Date header)
qrefresh (like qnew)
sign (like tag)
fetch (merge, merge, merge, merge, abort)
2008-02-17 21:34:28 +01:00
Thomas Arendsen Hein
d7cabb1e8d Report filenames with disallowed characters as suggested by Mika Eloranta
(see issue671)
2008-02-17 12:53:57 +01:00
Thomas Arendsen Hein
b04d324f97 hgweb: Quote filenames when downloading raw files. 2008-02-16 18:12:30 +01:00
Thomas Arendsen Hein
a285a14d02 hgweb: Pass only filename instead of full path when downloading raw files.
Before this patch "filename=foo/bar" was sent and e.g. Firefox offered to save
the file as "foo-bar" instead of just "bar".
2008-02-16 17:51:30 +01:00
Patrick Mezard
c909c274fa Merge with crew-stable 2008-02-16 12:46:28 +01:00
Patrick Mezard
b6695538ff convert: fix --datesort ordering
Two branches a and b starting at root, with commits interleaved like:
root a0 a1 b0 a2 a3 b1
were converted in the following order:
root a0 b0 a1 b1 a2 a3

Replace depth based toposort with a more classic traversal method.
2008-02-16 11:55:33 +01:00
Peter Arrenbrecht
a04490ff3f bundlerepo: fix inconsistency of parsed and internal name (issue #821) 2008-02-10 08:53:39 +01:00
Peter Arrenbrecht
3b87e3073c bundlerepo: test exposing inconsistency of parsed and internal name (issue #821) 2008-02-10 08:52:50 +01:00
Alexis S. L. Carvalho
124987b6ed Simplify the output of test-bheads
Also remove unneeded -d and -u commit options.
2008-02-15 23:38:18 -02:00
Thomas Arendsen Hein
c2c0709092 fix test output after 2517d68af91e 2008-02-15 20:06:47 +01:00
Christian Ebert
b2bd63ef17 keyword: add test for patch.diff monkey 2008-02-15 18:36:49 +01:00
Alexis S. L. Carvalho
0ec07a9e3b try to fix test-inherit-mode on HFS+
HFS+ doesn't like setgid directories, so avoid them in most
of the test and do a quick check that doesn't change the
output when everything's OK.
2008-02-15 10:51:35 -02:00
Alexis S. L. Carvalho
d3f4694609 cmdutil.commit: use relative paths in the error messages
This is more consistent with other error messages and requires
less makeup in test-commit and test-symlink-basic.
2008-02-15 10:38:37 -02:00
Alexis S. L. Carvalho
85673c1586 status: put added files that have disappeared in the deleted list
This gives the user an indication that something went wrong with this file:

$ hg add foo
$ rm foo
$ hg status foo
! foo

Fixes issue212.
2008-02-14 18:08:16 -02:00
Alexis S. L. Carvalho
2af8c0c0fe revert: unify forget and remove lists
This doesn't make a difference right now, but after the next revision
some files in state 'a' may end up in the deleted list, and revert
won't be able to just remove all files in that list.
2008-02-14 18:08:16 -02:00
Alexis S. L. Carvalho
9c841e3f7b commands.revert: don't call hg.revert
commands.revert calculates everything that has to be done and then
calls hg.revert to checkout and remove files.  Unfortunately,
hg.revert has to recalculate everything and that can take a long
while, since it always operates on the whole working dir.

Changing commands.revert to manually checkout and remove files
makes things considerably faster, especially if we're reverting
a single file in a repo with a huge number of files.

This should be enough to close issue857.
2008-02-14 18:08:16 -02:00