Commit Graph

15769 Commits

Author SHA1 Message Date
Matt Mackall
e0479875b3 merge with stable 2012-01-13 11:29:53 -06:00
Matt Mackall
4e782fbdd1 merge with i18n 2012-01-13 11:29:40 -06:00
Andrei Polushin
c03a204771 i18n-ru: editorial for 'abort' and 'pipe' 2012-01-12 17:50:48 +07:00
Andrei Polushin
e1c138289d i18n-ru: editorial for 'diff'
* * *
i18n-ru: editorial for 'diff'
2012-01-12 02:12:00 +07:00
Andrei Polushin
500b40b2d5 i18n-ru: editorial for 'guard' 2012-01-12 02:02:11 +07:00
Olav Reinert
c5f1adceef help: fix column alignment in "hg help" output
The output of "hg help" is changed to ensure that the column containing
descriptions of commands, extensions, and other topics is correctly alignmened.
2012-01-11 18:14:55 +01:00
Olav Reinert
cfc7a5074e minirst: simplify and standardize field list formatting
The default width of field lists is changed from 12 to 14 to align minirst with
the rst2html tool. Shrinking the width of the left column to fit the content is
removed, to keep formatting simple and uniform.
2012-01-11 18:08:25 +01:00
Na'Tosha Bard
5fa005e186 largefiles: correctly download new largefiles when merging
There is a bug in the merge process where, if a new largefile is introduced
in a merge and the user does not have that largefile in his repo's local store
nor in his system cache, the working copy will retain the old largefile.  Upon
the commit of the merge, the standin is re-written to contain the hash of the
old largefile, and the lfdirstate retains a "Modified" status for the file.
The end result is that the largefile can show up in the merge commit as
"Modified", but the standin has no diff.  This is wrong in two ways:

  1) Such a "wedged" history with a nonsense change in a commit should not be
      possible
  2) It effectively reverts a largefile to an old version when doing a merge

This is caused by the fact that the updatelfiles() command always checks the
current largefile's hash against the hash stored in the current node's standin.
This is correct behavior in every case except for a merge.  When merging, we
must assume that the standin in the working copy contains the correct hash,
because the original hg.merge() has already updated it for us.

This patch fixes the issue by patching the repo object to carry a "_ismerging"
attribute, that the updatelfiles() command checks for.  When this attribute is
found, it checks against the working copy's standin, rather than the standin
in the current node.
2012-01-11 16:53:51 +01:00
Yuya Nishihara
0bf3f9f6fd filectx: fix cmp() of file starting with '\1\n'
If file data starts with '\1\n', it will be escaped in the revlog to
create an empty metadata block, thus adding four bytes to the size in
the revlog size index. There's no way to detect that this has happened
in filelog.size() faster than decompressing each revision [1].

For filectx.cmp(), we have the size of the file in the working directory
available. If it differs by exactly four bytes, it may be this case, so
do a full comparison.

 [1]: http://markmail.org/message/5akdbmmqx7vq2fsg
2012-01-12 00:49:45 +09:00
Matt Mackall
458a6108a3 merge with i18n 2012-01-11 09:26:47 -06:00
Markus Zapke-Gründemann
46ae5d8243 tests: add htmlcov option 2012-01-11 15:38:31 +01:00
Matt Mackall
f2d5e5c061 run-tests: use a list comprehension instead of map 2012-01-12 14:39:02 -06:00
Markus Zapke-Gründemann
9311522001 tests: fix omit path list
All directories need a trailing asterisk. Otherwise the files are not excluded
from coverage.
2012-01-11 15:37:25 +01:00
Martin Geisler
1c373fe3fb commands: partial backout of 50aa11ad0b77 2012-01-13 14:52:47 +01:00
Martin Geisler
5f85497f3f phase: add metavar to -r help text 2012-01-13 11:53:51 +01:00
Martin Geisler
03f35c36c9 phase: the REV argument can be repeated 2012-01-13 11:50:06 +01:00
Martin Geisler
4c9bf5eec4 commands: no need to rename merge and phases on import 2012-01-13 11:38:49 +01:00
Martin Geisler
f194db061a phase: there is actually no -C option 2012-01-13 11:34:09 +01:00
Martin Geisler
312014ab5d phase: use standard syntax for command line flags
We don't mark them as literal text and we mention the short option the
first time we talk about a given flag.
2012-01-13 11:29:47 +01:00
Martin Geisler
c8fd9fad8f phase: fix RST markup (use `...` for literal text) 2012-01-13 11:26:24 +01:00
Martin Geisler
57ec63f3c0 phase: lowercase option help, rephrase slightly 2012-01-13 11:23:45 +01:00
Matt Mackall
1a97ae2eb1 merge with stable 2012-01-11 09:27:53 -06:00
Matt Mackall
dec1f1ecc2 merge with i18n 2012-01-11 09:27:37 -06:00
Steven Brown
a6c2ab15fb tests: make {date|age} template output independent of the current date 2012-01-11 22:18:20 +08:00
Pierre-Yves David
32c99d5daa phases: make outgoing object and discovery aware of exclusion
The outgoing object gains an "excluded" members holding all changesets which
were excluded because there where secret.

The core discovery code now remove secret changeset from discovery by default.
This means that any command relying on discovery will exclude secret changeset.
Most notable one are outgoing and bundle. (But bundle with and explicit
``--base`` still allow to bundle outgoing changeset.
2012-01-11 00:27:46 +01:00
Andrei Polushin
0e0929e9d0 i18n-ru: vocabulary edited, minor corrections in translations. 2012-01-11 04:32:48 +07:00
Andrei Polushin
8934bc58f9 i18n-ru: using correct abbreviated units for megabytes.
See http://ru.wikipedia.org/wiki/МБ
2012-01-11 04:12:11 +07:00
Wagner Bruna
48d154e274 i18n-pt_BR: synchronized with 5ec2496518fa 2012-01-10 15:56:33 -02:00
Wagner Bruna
0746f36a73 merge with i18n 2012-01-10 15:48:16 -02:00
Martin Geisler
303e7dc672 filesets: use example with quotes for encoding predicate
A user on IRC was confused that "encoding(ASCII)" works and
"encoding(UTF-8)" fails with "parse error: encoding requires an
encoding name".
2012-01-10 15:20:16 +01:00
Pierre-Yves David
e929cd5e49 discovery: introduce outgoing object for result of findcommonoutgoing
Simplifies client logic in multiple places since it encapsulates the
computation of the common and, more importantly, the missing node lists.

This also allows an upcomping patch to communicate precomputed versions of
these lists to clients.
2012-01-09 03:47:16 +01:00
Pierre-Yves David
2362e6fe6c commands: make bundle use heads computed by findoutgoing 2012-01-09 04:16:00 +01:00
Pierre-Yves David
a51dc67424 revlog: improve docstring for findcommonmissing 2012-01-09 04:15:31 +01:00
Martin Geisler
e0542a7108 commands: bump copyright year 2012-01-11 15:51:02 +01:00
Matt Mackall
7ea3d8e9f3 phase: mark messages for i18n 2012-01-10 16:36:36 -06:00
Matt Mackall
7025e1c3b0 phase: fix up help string 2012-01-10 16:36:33 -06:00
Matt Mackall
ae28263f4b phase: drop reference to working directory phase 2012-01-10 16:36:32 -06:00
Pierre-Yves David
a2fe028df9 phases: add a phases command to display and manipulate phases 2012-01-10 19:45:35 +01:00
Ion Savin
029e0ada33 annotate: append newline after non newline-terminated file listings
The last line of a non newline-terminated file would mix with the first line of
the next file in multiple-file listings before this patch.

Possible compatibility issue: no longer possible to tell from the annotate
output if the file is terminated by new line or not.
2012-01-10 10:18:19 +02:00
Matt Mackall
36343a23b2 subrepo: avoid syncing bookmarks twice on clone (issue3191)
Clone internally handles bookmark synchronization.

(Fix spotted by Eric Blood)
2012-01-10 13:48:42 -06:00
Steven Brown
3ebdb5ed19 revlog: clarify strip docstring "readd" -> "re-add"
I misread it as "read".
2012-01-10 22:35:25 +08:00
Martin Geisler
5c1213d740 merge with stable 2012-01-10 15:23:49 +01:00
Andrei Polushin
2386de7f31 i18n-ru: spellcheck 2012-01-09 02:32:01 +07:00
Andrei Polushin
c25d491848 i18n-ru: editorial for vocabulary words.
Edited for: backup, bundle, repository, checkout
2012-01-09 01:12:54 +07:00
Steven Brown
51a1bd2f20 rebase: reinstate old-style rev spec support for the source and base (issue3181)
As of 1ffaca626da1 (first released as part of Mercurial 2.0), the rebase command
accepted ONLY revsets for the source and base arguments and no longer accepted
old-style revision specifications. As a result, some revision names were no
longer recognised, e.g.

hg rebase --base br-anch
abort: unknown revision 'br'!

These arguments are now interpreted first as old-style revision specifications,
then as revsets when no matching revision is found. This restores backwards
compatibility with releases prior to 2.0.
2012-01-08 23:09:35 +08:00
Andrei Polushin
fec3e33119 i18n-ru: editorial for hg help hgignore 2012-01-08 19:16:22 +07:00
Alexander Sauta
b2c663afdb i18n-ru: synchronized with 56f11e7f38ab 2012-01-08 13:54:36 +04:00
Andrei Polushin
3c579b87b3 i18n-ru: revsets predicates translated 2012-01-08 03:48:09 +07:00
Pierre-Yves David
c4636298a6 phases: use graph and phase name in exchange test 2012-01-07 17:03:33 +01:00
Pierre-Yves David
47a0f8f964 phases: `{phase}` template keyword display the phase name
``{phaseidx}`` is providing the phase index as integer. This integer
 representation is useful when people need to use the fact that phase are
 ordered.

Test keep using the number version for readability purpose.
2012-01-06 11:20:49 +01:00