Commit Graph

10680 Commits

Author SHA1 Message Date
Patrick Mezard
438c49a871 convert/git: check status when reading output stream 2010-04-25 23:07:46 +02:00
Patrick Mezard
7dba5c05ca convert/git: check status when reading the whole output 2010-04-25 22:59:50 +02:00
Patrick Mezard
cadf5fd884 convert/git: rename gitcmd() into gitopen() for readability 2010-04-25 22:32:27 +02:00
Martin Geisler
aa7bc3741f hgrc.5: mention lists as well 2010-04-25 17:11:36 +02:00
Martin Geisler
61ede1530c hgrc.5: describe form of config values 2010-04-25 16:46:26 +02:00
Brett Cannon
8e100766b6 subrepo: fix repo root path handling in svn subrepo 2010-04-18 14:20:08 -07:00
Yuya Nishihara
b7e5bbb3f3 remoteui: copy http_proxy settings
http_proxy settings of current repo's .hg/hgrc should be available
on remoteui, so that the httprepo can use them when pulling via http.
2010-04-08 00:13:33 +09:00
Simon Heimberg
4b52c68f90 dispatch: ignore if signals can not be set
This happens if the code is executed in a thread.
This patch allows tortoisehg to start the inotify server again.
2010-04-07 02:41:22 +02:00
Mark Determann
7b2e3d8cf6 hgweb: fix attribute error in error response (issue2060) 2010-04-01 22:04:30 +01:00
Brandon Parsons
dc54791a49 cvs: skip bad tags
If the CVS repo somehow has a symbolic name that references a revision
consisting of a single number (e.g. BAD_TAG: 1), convert will fail when
attempting to find the branches, preventing the initial import from
working.
This patch skips those symbolic names--without warning.
2010-03-04 14:32:01 -06:00
anatoly techtonik
5ce3768204 document missing template variables 2010-04-07 00:35:38 +03:00
Dan Villiom Podlaski Christiansen
b9377254d9 diffstat: use ui.plain() instead of ui.interactive()
Previously, a default width of 80 is used for non-interactive
sessions. This behaviour was introduced before HGPLAIN was supported.
2010-04-15 18:52:59 +02:00
Isaac Jurado
eb02fcecf2 mq: Remove -f from qnew command syntax.
In 27e33e529fab the -f option was not completely removed from the help message.
2010-04-17 15:35:34 +02:00
Dan Villiom Podlaski Christiansen
a911d6d8e4 mq: toggle truncating using ui.plain() rather than ui.interactive()
This enables truncated messages when using `qseries' with the `pager'
extension.
2010-04-15 14:06:07 +02:00
Benoit Boissinot
7137f04bb0 filemerge: use working dir parent as ancestor for backward wdir merge
I checked the tests, they were bogus in the first place
2010-04-19 20:41:53 +02:00
Benoit Boissinot
6fa67d00f9 filectx: _fileid isn't normalized, use _filenode instead
_fileid can be anything the lookup accepts (hex(node), node, rev, etc.), we
should use something stable for comparisons (like _filenode).
2010-04-19 20:30:31 +02:00
Martin Geisler
a6f1ed6804 convert: write "working copy" instead of "wc" 2010-04-18 15:47:49 +02:00
Martin Geisler
9346f78d09 convert: mark strings for translation 2010-04-18 15:47:49 +02:00
Martin Geisler
540a354601 convert: write "repository" instead of "repo"
We should strive to avoid slang in our messages to the users.
2010-04-18 15:47:49 +02:00
Faheem Mitha
d7c81ab4be Document 'default' and 'default-push' in paths docstring 2010-04-14 11:59:53 +05:30
Benoit Boissinot
189189e360 test-git-import: better testing, check nodeids 2010-04-16 01:57:53 +02:00
Benoit Boissinot
788c113d09 context: fix bug introduced in f2d764a0939e, path should be used 2010-04-16 01:57:32 +02:00
Sune Foldager
a81e6a76a5 prepush: rewrite most of the code from scratch
For servers with branchmap support, the algorithm now works as follows:

1. A list of branches in outgoing changesets is created.
2. Using the remote branchmap, a check for new branches is performed.
3. A map (from branch to head list) of locally known remote heads before
   the push is created, and one which, after step 4, will contain the locally
   known remote heads after the push.
4. The post-push head map is updated with the outgoing changesets, using the
   branch cache update mechanism.
5. A check for new heads is performed, by comparing the length of the head list
   before and after push, for each branch. If there are new heads, an error
   depending on whether or not there are incoming changes on the branch,
   is returned.
6. If the push is allowed, a warning is written if there are incoming changes
   on any branches involved in the push.

For old servers, an algorithm similar to step 4-6 above is used to check for
new topological heads only.

Two bugs are also fixed:
1. Sometimes you would be allowed to push new branch heads without --force.
   A test for this case was added.
2. You would get the "note: unsynced remote changes!" warning if there were any
   incoming changesets, even if they were on unrelated branches.
2010-04-15 21:59:21 +02:00
Benoit Boissinot
d2fd3d1bf8 run-tests.py: can't remove from os.environ on solaris 2010-04-15 20:25:07 +02:00
Benoit Boissinot
73bdc48646 workingctx: correctly compute the flag for noexec filesystems+merge
This bug happens if the filesystem doesn't support exec-bit, during merges,
for example in 0b01431fee25 on the hg repo.
If f is not in p1, but is in p2 and has the x-bit in p2, since the dirstate is
based on p1, and the FS doesn't support the exec-bit, the dirstate can't
"guess" the right bit.
We instead fix it in workingcontext.flags()/manifest.
2010-04-15 18:08:48 +02:00
Benoit Boissinot
36f866b9f2 simplify test-issue2137, make it more portable 2010-04-15 15:21:41 +02:00
Benoit Boissinot
042c3ae681 add documentation for revlog._prereadsize 2010-04-15 15:21:21 +02:00
Greg Ward
81511c58c5 revlog: fix lazyparser.__iter__() to return all revisions (issue2137)
Previously, it only returned revisions that were in the revlog when it
was originally opened; revisions added since then were invisible.
This broke revlog._partialmatch() and therefore repo.lookup().

(Credit to Benoit Boissinot for simplifying my original test script
and for the actual fix.)
2010-04-14 15:06:40 -04:00
Greg Ward
fac8084184 revlog: factor out _maxinline global.
This lets us change the threshold at which a *.d file will be split
out, which should make it much easier to construct test cases that
probe revlogs with a separate data file.
(issue2137)
2010-04-13 17:58:38 -04:00
Peter Arrenbrecht
da567ef452 prepush: add more test cases 2010-04-14 19:35:54 +02:00
Sune Foldager
62eb1177d6 prepush: fix bug in warning message selection
In certain situations you would be told "you should pull and merge" even when
there is nothing to pull.
2010-04-14 19:11:35 +02:00
Ry4an Brase
24ead01860 Fix --blacklist when --jobs > 1 in run_tests.py.
The options parsing logic replaces the options.blacklist initial value,
a list of filenames, with a dict of test names to filenames.  When
runchildren rebuilds the command line to launch child processes the dict
is flattened and provided as a malformed argument when a filename is
expected.

Fix is to remove the blacklist option from child invocations since the
filtering is handled in the parent anyway.
2010-04-14 00:24:47 -05:00
Benoit Boissinot
4ae674da0c run-tests.py: reset env variables set by hooks 2010-04-14 09:08:47 +02:00
Benoit Boissinot
1bad57968f checklink: use an explicit prefix for the temporary file 2010-04-14 08:48:26 +02:00
Benoit Boissinot
293ba231eb checkexec: use an explicit prefix for the temporary file 2010-04-13 21:54:59 +02:00
Patrick Mezard
4070a4e9d2 convert/subversion: fix default URL checker prototype 2010-04-12 21:19:53 +02:00
Peter Arrenbrecht
7abe6f6609 patch: don't look for headers in diff lines
If you have a diff line that matches a header line, the patch splitter
currently breaks your patch at this line. For example a line like:

  +key: value

This can lead to "malformed patch" exceptions. Now fixed.
2010-04-09 20:34:05 +02:00
Thomas Arendsen Hein
28d0873b31 test-hgwebdir: correctly include '-' in sed expression.
'\' can't be used to escape '-' from being interpreted as a range,
so put it at the end.
2010-04-09 15:14:43 +02:00
Sune Foldager
b66624019c partial backout of 5a81f112887e and add tests (issue2131)
The tests are due to Peter Arrenbrecht
2010-04-08 19:46:47 +02:00
Henrik Stuart
0efc07dca7 copies: properly visit file context ancestors on working file contexts 2010-04-07 21:31:47 +02:00
Henrik Stuart
c77aceb840 mq: use util.unlink instead of os.unlink and os.removedirs
If, on Windows, your repository and working copy are in a reparse point and you
use os.removedirs, you will remove non-empty reparse points, disabling the
reparse point. See @6b1369445b7b.
2010-04-07 16:55:01 +02:00
Benoit Boissinot
0a44721801 merge stable with stable 2010-04-06 15:39:44 +02:00
Benoit Boissinot
498261f658 dirstate: no need to iterate twice, a dict can be updated in place 2010-04-06 11:49:42 +02:00
Matt Mackall
8516a8fc46 Merge with i18n 2010-04-05 17:48:00 -05:00
Benoit Boissinot
679db973ed clone: no race possible, we can use changegroup() and have smaller urls
Related to issue2126
2010-04-06 00:45:53 +02:00
Ronny Pfannschmidt
b13f9030c7 add a test for the inprocess status dirstate race 2010-04-05 20:10:46 +02:00
Benoit Boissinot
c3e1bfcf81 dirstate: fix in memory dirstate entries for 1-second race
Only the on-disk file was modified, we need to modify the in-memory dirstate
as well.
2010-04-05 18:13:20 +02:00
Martin Geisler
285d3f5d10 i18n-da: small updates 2010-04-05 01:10:09 +02:00
Martin Geisler
b0ebe17f13 i18n-da: synchronized with c1f09a6215ad 2010-04-05 00:14:24 +02:00
Matt Mackall
d01a64cf5b Added signature for changeset 4ac7199cdd90 2010-04-01 17:49:38 -05:00