Commit Graph

2514 Commits

Author SHA1 Message Date
Patrick Mezard
3cefb24597 convert/svn: handle files/links replaced by dirs (issue2166) 2010-05-09 19:11:02 +02:00
Patrick Mezard
c25c428f66 convert/svn: do not retrieve removed files
It gives us a way to not retrieve content of entries we know are no longer
files. And it is faster when converting remote repositories.
2010-05-09 19:11:02 +02:00
Patrick Mezard
1cb53b6a8f convert/svn: correctly encode deleted entry paths
This recode call was removed in 597805361f86, because it looked the
encode(decode()) construct was a no-op. In fact, the first decode() call was
wrong, and entries still have to be encoded before being passed to the sink.
2010-05-09 19:11:02 +02:00
Patrick Mezard
c5e014e3e0 convert/svn: remove broken but unused copy filtering code
For some reason, if a copy source is deleted in the same revision it is
referenced, it is filtered out. This is silly, because this happens all the
time with move operations. Fortunately, the filtering code is buggy and ends
being a no-op 99% of the time, since it does not delete the right key. Just
remove all this nonsense.
2010-05-09 19:11:02 +02:00
Matt Mackall
f37d605b14 clean up remaining generic exceptions 2010-05-07 16:59:00 -05:00
Martin Geisler
f93965f673 mq: mark error message for translation 2010-05-07 23:31:49 +02:00
Martin Geisler
0133c2f995 mq: mark string for translation 2010-05-07 23:28:07 +02:00
Eric Eisner
21d3c16701 mq: make use of output labeling for summary 2010-05-07 16:51:45 -04:00
Stanimir Stamenkov
268f6af2e2 color: add some missing background colors for win32 console 2010-05-07 15:19:37 -05:00
Elifarley Callado Coelho Cruz
6a180e3b5f acl: update docstring to describe section [acl.groups] 2010-05-06 15:14:40 -03:00
Elifarley Callado Coelho Cruz
1b50176554 acl: support for group definitions in section [acl.groups], which take precedence over OS-level groups 2010-05-06 14:23:14 -03:00
Matt Mackall
7a237857b0 mq: add a line to hg summary 2010-05-05 20:53:45 -05:00
Christian Ebert
7ef7102e51 keyword: omit setting extra variable for record context
Since ab6bbeb1b787 the context is always retrieved in
kwtemplater.overwrite().
2010-05-05 14:02:45 +02:00
Martin Geisler
fa236c2f0a acl: more consistent docstring 2010-05-05 09:25:09 +02:00
Martin Geisler
648fca8526 acl: fix reST syntax 2010-05-05 09:18:05 +02:00
Elifarley Callado Coelho Cruz
e8298826aa acl: add support for branch-based access control 2010-05-04 08:37:20 -03:00
Christian Ebert
9642b7288d keyword: simplify record switch in kwtemplater.overwrite
1) use kwtemplater.record attribute for clarity
2) drop optional context argument; consider the speed loss by
   duplicating the dictionary lookup repo['.'] as negligible
2010-05-01 23:59:39 +02:00
Steve Borho
146627c709 color: fix typo in w32effect for bold_background 2010-05-01 16:57:02 -05:00
Matt Mackall
7f6aa6252c Merge with stable 2010-05-01 15:15:35 -05:00
Faheem Mitha
5fe5a6e7b6 mq: rewrite strip docstrings
This patch is joint work with ilowe.
2010-05-01 23:04:49 +05:30
Patrick Mezard
ce447a0bd6 convert/svn: tree conflicts no longer happen now we use memctx 2010-05-01 16:29:27 +02:00
Mads Kiilerich
ee95467b21 mq: qpush --move, reorder patch series and apply only the patch
This makes it less necessary to edit .hg/patches/series manually.
2010-04-30 15:05:51 +02:00
Benoit Boissinot
e1d4a8491c relink/progress: correctly handle the no file to relink case 2010-05-01 14:36:48 +02:00
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
862a4d2cfc acl: cleanup module docstring
- removed implementation detail about how the group information is
  obtained

- fixed some language, better consistency

- fixed bad comment in hgrc example
2010-05-01 14:32:50 +02:00
Martin Geisler
3e011e6691 acl: fix ReST syntax in docstring 2010-05-01 14:20:17 +02:00
Martin Geisler
f25789e50f relink: removed unneeded local variable 2010-05-01 16:15:55 +02:00
Yuya Nishihara
e1d422d1b5 commands: refactor diff --stat and qdiff --stat
`opts['unified'] = '0'` can be replaced by `diffopts.context = 0`.
2010-04-07 00:45:20 +09:00
Yuya Nishihara
a3e35890c8 mq: fix opts['unified'] = '0' to take effect when qdiff --stat
`opts['unified'] = '0'` tries to reduce the number of lines to be
processed by patch.diffstat, but here it does not affect diffopts,
thus it does not make sense.

Instead, we can change `diffopts.context` directly.

Added test case for qdiff --stat.
2010-04-07 00:10:54 +09:00
Christian Ebert
4edb0451d8 keyword: support (q)record
Monkeypatch hgext.dorecord to trigger keyword expansion.
Read data from working directory, not from filelog.
Prevent keyword expansion from within record's commitfunc,
thereby fixing a bug/inconsistency where files which are clean
after recording were overwritten twice.
2010-04-26 04:01:07 +02:00
Christian Ebert
40b4260377 keyword: remove mq commands from restricted list
Monkeypatching patch.diff takes care of this since 224e03d75428.

Test mq more thoroughly by loosening [keywordmaps] and comparing
the output of hg cat with keyword expansion enabled and disabled.
2010-04-26 03:54:18 +02:00
Elifarley Callado Coelho Cruz
2db63d3c8b acl: updated doc string to reflect recent changes 2010-04-27 19:02:11 -03:00
Elifarley Callado Coelho Cruz
7a60d978ee acl: add support for OS-level groups using @group syntax 2010-04-26 10:55:57 -03:00
Matt Mackall
7032c8dbda zeroconf: handle string hgweb config args 2010-04-26 11:03:40 -05:00
Matt Mackall
3fea1c3bdd hgweb: make baseui parameter non-positional 2010-04-26 11:03:40 -05:00
Patrick Mezard
ed31d6901d color: handle non-standard stdout on win32 2010-04-23 14:29:44 +02:00
Patrick Mezard
ec8a419814 Merge with crew-stable 2010-04-25 23:36:56 +02:00
Martin Geisler
f1853c5e82 Use hg role in help strings 2010-04-22 10:24:49 +02:00
Augie Fackler
9af6a77207 keyword: monkeypatch patch so that optional args can be passed as kwargs 2010-04-17 13:38:42 -05:00
Matt Mackall
399ebe1c0f Merge with stable 2010-04-19 17:00:02 -05:00
Matt Mackall
91d4d9f28f highlight: fix to work with caching templater 2010-04-19 16:47:44 -05:00
Isaac Jurado
d9e491d777 bookmarks: complete the missing references from 71751c162829 (issue2121)
The fix for issue1611 left one last use of "repo" instead of "self" that has
resulted in more memory leaks from push/pull operations.
2010-04-17 14:32:26 +02:00
Elifarley Callado Coelho Cruz
060edfe5fe Added support for 'pretxncommit', so that one can call the ACL hook at
pre-commit time too. This is useful because now it's possible to avoid
violating ACL permissions much sooner, at commit time, instead of
waiting for a PUSH to check if there were any invalid commits.
2010-04-06 22:15:43 -03:00
Martin Geisler
efdb23be6b Merge with stable 2010-04-19 20:49:09 +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
Dan Villiom Podlaski Christiansen
3b0b530a9d mq: only highlight/label patch name for qseries.
Restore the behaviour introduced in 6805fe267fe5, which was
accidentally removed when labelling was introduced in af5046e50cc6.
2010-04-15 18:12:28 +02:00
Nicolas Dumazet
7f1a963829 pylint, pyflakes: remove unused or duplicate imports 2010-04-14 17:58:10 +09:00
Patrick Mezard
4070a4e9d2 convert/subversion: fix default URL checker prototype 2010-04-12 21:19:53 +02:00
Christian Ebert
00843e594b keyword: make the templater a local variable
After 9afcbefba307 a class attribute makes no sense.
2010-04-12 17:34:12 +02:00
Augie Fackler
8d7cb15f33 progress: fall back to indeterminate progress if position is >= total 2010-04-08 15:04:00 -05:00
Matt Mackall
e4c06cc26b mq: promote qnew, demote qinit in short help 2010-04-11 14:25:02 -05:00
Patrick Mezard
5aacf29983 Merge with crew-stable 2010-04-12 21:55:34 +02:00
Steve Borho
8299cbf24b rollback: add dry-run argument, emit transaction description 2010-04-09 17:23:37 -05:00
Steve Borho
c7ec998a7b localrepo: add desc parameter to transaction
All callers to localrepo.transaction() must supply a transaction description.
The description and the existing repository tip are then stored
(transactionally) into .hg/undo.desc; where rollback can later find it.
2010-04-09 17:23:35 -05:00
Matt Mackall
b0e809f105 Merge with stable 2010-04-07 14:44:51 -05: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
Steve Borho
bde27d9380 color: respect HGPLAIN 2010-04-06 08:54:18 -05:00
Steve Borho
898c5adf56 color: add support for Windows consoles
Introduces color.mode configurable with values 'auto', 'ansi', or 'win32'.  Any
other value disables coloring.  When 'auto' is selected, the win32 console
method will be used if the win32console Python module is detected (requires
pywin32 to be installed).
2010-04-06 08:49:19 -05:00
Steve Borho
b2f2de10b6 color: remove unused import 2010-04-06 08:44:13 -05:00
Matt Mackall
00f3284ee7 keywords: build a new templater to work around caching interaction 2010-04-05 15:25:08 -05:00
Brodie Rao
2f064ecab9 color: concatenate effects correctly and avoid printing empty effects 2010-04-04 22:53:50 -05:00
Brodie Rao
1ad67ea95f color: don't split colors across lines (which confuses less -R)
Currently, less -R doesn't support colors spanning multiple lines; only
the first line will be colorized.

Instead of allowing colors to span multiple lines, the color extension
now applies colors to each line it receives, even when ui.write() is
given multiple lines in one call.
2010-04-02 15:22:19 -05:00
Brodie Rao
e46074c7b3 color: colorize based on output labels instead of parsing output
By overriding ui.write(), ui.write_err(), ui.popbuffer(), and ui.label(),
the color extension can avoid parsing command output and simply colorize
output based on labels.

As before, the color extension provides a list of default colors for
core commands/labels. Other extensions can provide their own defaults by
specifying a colortable dict (similar to cmdtable).

In this process, --color is promoted to a global option and the deprecated
--no-color option is removed.
2010-04-02 15:22:17 -05:00
Brodie Rao
215b2d7a98 record: make use of output labeling 2010-04-02 15:22:15 -05:00
Brodie Rao
9422709db6 qseries: make use of output labeling 2010-04-02 15:22:14 -05:00
Brodie Rao
a7217d1b38 qdiff: make use of output labeling 2010-04-02 15:22:11 -05:00
Brodie Rao
28173d35ba qguard: make use of output labeling 2010-04-02 15:22:12 -05:00
Brodie Rao
f203aa2c4e churn: make use of output labeling 2010-04-02 15:22:10 -05:00
Brodie Rao
82d66d066d bookmark: make use of output labeling 2010-04-02 15:22:09 -05:00
Brodie Rao
9a7e3ba689 ui: add ui.write() output labeling API
This adds output labeling support with the following methods:

- ui.write(..., label='topic.name topic2.name2 ...')
- ui.write_err(.., label=...)
- ui.popbuffer(labeled=False)
- ui.label(msg, label)

By adding an API to label output directly, the color extension can forgo
parsing command output and instead override the above methods to insert
ANSI color codes. GUI tools can also override the above methods and use
the labels to do GUI-specific styling.

popbuffer gains a labeled argument that, when set to True, returns its
buffered output with labels handled. In the case of the color extension,
this would return output with color codes embedded. For existing users
that use this method to capture and parse output, labels are discarded
and output returned as normal when labeled is False (the default).

Existing wrappers of ui.write() and ui.write_err() should make sure to
accept its new **opts argument.
2010-04-02 15:22:00 -05:00
Matt Mackall
0726edad79 Merge with stable 2010-04-01 17:51:59 -05:00
Matt Mackall
d287a71ee7 Merge with i18n 2010-04-01 17:40:47 -05:00
Wagner Bruna
0d7a0676a9 mq: remove reference for deprecated -f option
-f is the default behaviour since a4e731b2164f
2010-04-01 19:32:08 -03:00
Martin Geisler
b9e372455e Merge with stable 2010-04-01 00:15:29 +02:00
Brendan Cully
3f85d60b3e Merge with stable 2010-03-31 15:09:59 -07:00
Martin Geisler
3e53380842 share: drop experimental label
As per mail from Matt:

  http://selenic.com/pipermail/mercurial/2010-March/030774.html
2010-04-01 00:02:12 +02:00
Michael Glassford
268693c3a0 Add missing --mq option to hg log.
Since norepo is a string, not a list, the norepo check was matching
command names against any substring in norepo. This fix splits norepo
into a list of commands.
2010-03-31 10:59:00 -04:00
Matt Mackall
c9d0f4131a Merge with stable 2010-03-30 13:09:25 -05:00
Matt Mackall
faa2c6e395 Merge with stable 2010-03-29 15:51:26 -05:00
Elifarley Callado Coelho Cruz
43acaba36c Added support for 'everybody ' (using an asterisk) in user list. 2010-03-29 09:15:08 -03:00
Mads Kiilerich
378848d5c1 convert.cvs: Initialize state variable and abort on cvs error
Fix as proposed by Frank Kingswood.

Avoids
UnboundLocalError: local variable 'mode' referenced before assignment
when cvs fails.

This alsa partially fixes issue1592.
2010-03-30 02:42:21 +02:00
Sune Foldager
8d7f484a9b merge with stable 2010-03-26 17:09:56 +01:00
Sune Foldager
7c4049acf8 localrepo: change _updatebranchcache to use a context generator 2010-03-26 17:02:23 +01:00
Benjamin Pollack
bcc53961eb schemes: add Kiln On Demand to default schemes 2010-03-24 16:42:08 -04:00
Patrick Mezard
3a9ceece66 Merge with crew-stable 2010-03-23 22:59:31 +01:00
Patrick Mezard
3e16f0baa3 rebase: fix --collapse with --keepbranches (issue2100)
This was broken in 6da9831a41d3.
2010-03-23 20:45:08 +01:00
Patrick Mezard
ff276d3f72 mq: fix qcommit documentation wrt --mq option 2010-03-23 10:18:46 +01:00
Benoit Boissinot
40a289572d mq: allow lines starting with '--- ' in patch messages 2010-03-18 19:26:56 +01:00
Cédric Duval
c0a6443df8 patchbomb: --desc implies --intro
For a single patch, an introductory text should not remain unsent
if --intro has been omitted, as the intent of --desc is clear.
2010-03-15 22:37:38 +01:00
Brendan Cully
791f92f6bd Merge with stable 2010-03-18 14:36:24 -07:00
Matt Mackall
6e515e4e5d progress: drop extra args for pos=None calls (issue2087) 2010-03-17 18:15:16 -05:00
Christian Ebert
8900ee1dd7 keyword: do not bother about detecting extension path in demo
Detecting and showing the path to a keyword extension in a
non-standard place only made sense while keyword.py was not
shipped with Mercurial.

The test output has changed because we do not have a spurious
space at eol anymore.
2010-03-16 22:29:16 +01:00
Christian Ebert
4d1049dc50 keyword: make kwdemo less verbose
1) Set the branchname always silently with
   dirstate.setbranch().
   We create a branch so that testing the {branches} template
   does not come up empty. But kwdemo is hardly the place to
   inform the user by inference why {branches} is empty on the
   default branch.
   "demobranch" is ascii and cannot be changed, so using the
   internal command instead of commands.branch() is safe.
2) Do not show full path to temporary directory
   (distracting long lines on Mac OS X).
3) No special debug output. Output only related to keyword,
   no internals like unsetting of commit hooks etc.
2010-03-16 22:28:58 +01:00
Christian Ebert
c477dea549 keyword: 1 variable name for overwriting candidates 2010-03-16 22:28:23 +01:00
Christian Ebert
5180c9f434 keyword: do not customize ui.note() when overwriting
Behaviour change:
hg commit --verbose now prints out the names of the files
which are overwritten.
2010-03-16 22:27:22 +01:00
Matt Mackall
07c0edbc5d Merge with stable 2010-03-15 16:36:32 -05:00
Augie Fackler
eeb8822ee1 progress: use stderr instead of stdout; check stderr.isatty()
This means that progress bars will continue to show on the terminal
when both stdin and stdout are redirected.
2010-03-29 16:44:24 -05:00
Benoit Boissinot
12b6faccfd cvsps: fix traceback involving 'synthetic'
https://bugzilla.redhat.com/show_bug.cgi?id=573666
Reported by Sjoerd Mullender
2010-03-15 19:55:52 +01:00
Martin Geisler
f3b2ed5d56 progress: use a verb (+noun) in present participle 2010-03-15 18:33:39 +01:00
Martin Geisler
652e04c99c progress: use a verb in present participle 2010-03-15 18:40:00 +01:00
Martin Geisler
7dc53bec4e Merge with stable 2010-03-15 18:36:11 +01:00
Patrick Mezard
4f9677b2a3 Merge with crew-stable 2010-03-14 23:18:50 +01:00
Martin Geisler
74b4c06343 record: separate each hunk with a blank line
This makes it easier for the eye to find the beginning of a hunk when
scrolling up in the terminal.
2010-03-14 23:10:52 +01:00
Benoit Boissinot
f39aa4fcb7 mq: do not try to delete non-existent files (regression from 5f2a56be1e3e) 2010-03-14 22:17:10 +01:00
Martin Geisler
4936f759eb Merge with stable 2010-03-14 22:21:48 +01:00
Benoit Boissinot
5337e0f1bd mq: don't use regexp when not necessary 2010-03-14 19:09:55 +01:00
Cédric Duval
5526bbffdb mq: fix init with nonexistent or non-local repository 2010-03-14 18:46:38 +01:00
Cédric Duval
f7452aeef3 mq: no longer refer to deprecated qinit -c command 2010-03-14 19:21:24 +01:00
Cédric Duval
b91592cdc4 mq: don't mention qinit as a "common task"
Without -c, it is a no-op (the queue is implicitly initialized by all
relevant commands if needed), and queue repositories with -c are an
advanced usage of mq, and not otherwise required.
2010-03-14 19:17:06 +01:00
Benoit Boissinot
79921b5a72 mq: use xrange/enumerate instead of += 1 2010-03-14 14:53:20 +01:00
Benoit Boissinot
9be5c5ce37 mq: don't use len(list) unless necessary 2010-03-14 14:45:01 +01:00
Benoit Boissinot
8b8c0315c4 mq: find_series() simplify and don't use regexps 2010-03-14 12:08:14 +01:00
Benoit Boissinot
4f9affc968 mq: fix coding style (missing space) 2010-03-14 11:12:51 +01:00
Benoit Boissinot
cea219ac52 mq: qsave creates entries with the left part empty (':patchname') 2010-03-14 11:12:07 +01:00
Benoit Boissinot
18dd3c4c26 mq: simplify statusentry(), fix restore broken by 6099aebf81d9 2010-03-14 01:35:54 +01:00
Benoit Boissinot
2aba9d3b98 mq: use context API 2010-03-14 01:06:58 +01:00
Benoit Boissinot
2d9b1f0eb3 mq: simplify qparents calculation 2010-03-14 01:01:17 +01:00
Benoit Boissinot
d5eca3183b mq: simplify commit message generation 2010-03-14 00:53:55 +01:00
Benoit Boissinot
4b556a742a mq: avoid many hex/bin conversions, keep the binary node when possible 2010-03-14 00:36:10 +01:00
Mathieu Clabaut
14e6714bd1 convert: teach cvsps to handle . repository (issue1649)
For a CVS repository checked out with "cvs co .", the prefix used to strip of
what we get from CVS was previously erroneously set to "repopath/.".
We now prevent the dot to be added.

Test folded in test-convert-cvs and simplified by Patrick Mézard
<pmezard@gmail.com>.
2010-03-09 12:09:57 +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
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
Greg Ward
3789bab61d rebase: always check if rebasing onto an applied mq patch.
Previously, it only checked for an mq patch if the user explicitly
passed -d/--dest.  But rebasing onto an mq patch is a bad idea
regardless of how we determine the rebase destination.
2010-03-02 15:08:43 -05:00
Martin Geisler
c82c9a473d rebase: remove unnecessary \" from help string
They are not needed inside triple-quoted strings and they confuse the
line number computation done in i18n/hggettext. The script tries to
find the docstring in the source file. When \" in the source is turned
into just " in the docstring, the docstring can no longer be found.
2010-03-12 00:45:27 +01:00
Augie Fackler
b3f787c2e6 progress: document progress.disable config option 2010-03-11 16:54:34 -06:00
Greg Ward
8894f43741 rebase: improve help text
- add a paragraph about default dest/source changesets
- option help: say "changeset" not "revision"
- option help: explain -b/--base better
- clarify that -a/--abort and -c/--continue are different from the
  other options
2010-03-09 21:53:16 -05:00
Patrick Mezard
5f49cde57a convert: handle svn tree with empty roots (issue2079) 2010-03-09 22:11:43 +01:00
Stefano Tortarolo
46f29f9171 rebase: add option to not commit after a collapsing
This option is useful when other extensions (e.g., pbranch) want to
use rebase --collapse and append other things before committing.
This is not intended to be used from command line.
2010-02-07 17:12:41 +01:00
Patrick Mezard
e349da1f07 Merge with crew-stable 2010-03-13 20:02:46 +01:00
Benoit Boissinot
e0e2445d35 mq: simplify and use context API 2010-03-13 12:57:20 +01:00
Benoit Boissinot
8fab2b5659 mq: avoid a (potentially expensive) repo.status(unknown=True) call 2010-03-13 00:08:06 +01:00
Benoit Boissinot
25e7dd806e mq: all_files can be a set, remove dangerous default values 2010-03-13 00:02:33 +01:00
Martin Geisler
42e9951ca6 Merge with stable 2010-03-12 00:50:41 +01:00
Martin Geisler
dfe93b80f2 Merge with stable 2010-03-12 00:02:39 +01:00
Christian Ebert
b6094dd4c9 keyword: update copyright 2010-03-11 18:49:41 +01:00
Christian Ebert
9903aead30 keyword: remove deprecated options 2010-03-11 18:49:14 +01:00
Eric Eisner
c139fbc7cd churn: use ui.progress instead of --progress 2010-03-11 09:11:01 -05:00
Greg Ward
2eaaaf372f rebase: improve help text
- add a paragraph about default dest/source changesets
- option help: say "changeset" not "revision"
- option help: explain -b/--base better
- clarify that -a/--abort and -c/--continue are different from the
  other options
2010-03-09 21:53:16 -05:00
Sune Foldager
e360c8edcb rebase: improve output of hg pull --rebase (issue2072) 2010-03-10 12:38:33 +01:00
Patrick Mezard
86436bee09 Merge with crew-stable 2010-03-09 22:18:37 +01:00
Benoit Boissinot
04d99f9fbc patch/diff: move patch.export() to cmdutil.export()
This API change will allow us to break a cycle between patch and cmdutil.
2010-03-08 19:43:24 +01:00
Matt Mackall
d003bb863e Merge with stable 2010-03-07 22:04:35 -06:00
Greg Ward
f43d8c7735 inotify: expose the same dirstate.status() interface as dirstate.
The real dirstate.status() does not have any keyword args.  For
consistency, wrappers or subclasses should not have them either.
2010-03-07 13:10:23 -05:00
Christian Ebert
540e13ee5e keyword: remove spurious locks, improve handling of wlock
- kwcommitctx is inside the wlock of repo.commit: no lock
- _kwfwrite only needs wlock
  wlock outside try block, so we don't need to import lock.release

_kwfwrite should even be safer that way, as we moved the status
call inside the try-except block.

Thanks to Benoit Boissinot for help.
2010-03-07 13:03:03 +01:00
Christian Ebert
a54f17c396 keyword: use status' names instead of index 2010-03-07 13:03:03 +01:00
Matt Mackall
84afa4dd8f mq: drop -Q in favor of --mq only 2010-03-05 17:24:52 -06:00
Sune Foldager
533ddd28b6 mq: disallow : in patch names (issue2065) 2010-03-05 10:49:56 +01:00
Sune Foldager
868689388b mq: disallow # (and : on Windows) in patch names (issue2065) 2010-03-04 14:23:54 +01:00
Sune Foldager
ff514439e6 fetch: fix newheads calculation (issue2047) 2010-03-03 22:32:51 +01:00
Pierre-Yves David
31bf517562 Add ElementPath to the list of package ignored by demand import
The bzrlib try to import the ElementPath module but had a fallback in
case the import fails. Lazy import of this module leads to later
failure.

The bzrlib is used by the convert extension.
2010-03-01 14:15:55 +01:00
Benoit Boissinot
10dba63dce mq: simplify --mq handling / keep compatibility with other extensions
reported by edgimar on IRC
2010-02-28 19:43:21 +01:00
Benoit Boissinot
6ee31acb8c merge with default 2010-02-24 18:35:05 +01:00
Steve Borho
9309ff3d0c progress: provide an explicit disable method for developers
The other three checks for disabling the progress bar have serious
side effects for any class that derives from ui.ui()
2010-02-23 23:10:01 -06:00
Benoit Boissinot
11902c9b65 gpg: make 215997cc74c9 work when not on repo root 2010-02-23 22:56:37 +01:00
Brendan Cully
da58a67a13 hgcia: report RPC errors 2010-02-22 23:30:01 -08:00
Ronny Pfannschmidt
4e6e8c7c75 make the progress extension honor ui.quiet 2010-02-21 15:26:55 +01:00
Benoit Boissinot
04051efacc gpg: do not call status on the whole repository, only on '.hgsigs' 2010-02-20 15:18:59 +01:00
Brodie Rao
0f2039e2cc pager: set ui.interactive=False when enabled
This stops interactive-only things like progress bars from showing up
inside the pager.
2010-02-19 22:16:42 -05:00
Brendan Cully
9f7576938c zeroconf: suppress traceback during shutdown
If the read thred is in select when the main thread is in close, the main
thread may close the socket between select and read, generating a noisy
traceback. This can be ignored if the shutdown flag is set.
2010-02-19 16:50:47 -08:00
Benoit Boissinot
7dae5be27b i18n: mark more strings for translation 2010-02-19 02:23:38 +01:00
Christian Ebert
abe6b27034 keyword: mark improved demo commit message for translation
s/config/configuration/

Inside the quoted command put the message in single quotes in case
the translation contains apostrophes.
2010-02-18 05:55:05 +01:00
Brendan Cully
4b383ed9c8 mq: iterate over a copy of the command table keys (fixes issue2045).
I hope.
2010-02-17 14:35:11 -08:00
Christian Ebert
9ff7e51e84 keyword: do not postpone commit hooks
With cbda5ce5d115 in place, this hack is not needed any more.
2010-02-17 17:11:20 +01:00
Benoit Boissinot
060818ca9f inotify/inserve: implement --timeout-idle option (issue885)
hg inserve was ignoring and miscomputing the --timeout-idle option (seconds
vs. minutes).

Thanks to Jesse Glick for the bugreport and the initial patch.
2010-02-17 20:44:49 +01:00
Benoit Boissinot
9399306905 regression: missing arg from 3067d5de9e6c dirstate.{walk,status} changes 2010-02-17 20:30:57 +01:00
Sune Foldager
2369132b4b run commit and update hooks after command completion (issue1827)
Previously, the working dir state hadn't been written when these
hooks were invoked, so external commands couldn't see all changes.
2010-02-17 15:43:21 +01:00
Dirkjan Ochtman
1a3040f895 bugzilla: revert unhelpful check-code changes, module is actually called MySQLdb 2010-02-15 09:57:11 +01:00
Brendan Cully
0a7c012eeb mq: unify implementation of qinit and init -Q 2010-02-15 00:16:59 -08:00
Paul Molodowitch
d534a99ae5 bookmarks: add invalidate() to bookmark_repo
Cached bookmark information would not be reset when repo.invalidate()
was called, meaning (for instanced) guis would be left with out-of-date
bookmark info.  This patch fixes that by overriding bookmark_repo.invalidate()
2009-12-17 15:53:28 -08:00
Benoit Boissinot
5b98d49b1f progress: clear progress before writing to stderr 2010-03-06 13:32:14 +01:00
Martin Geisler
eeedee37da Merge with default 2010-02-15 00:14:16 +01:00
Martin Geisler
0d92b94dfa mq: more instructive use of "--" in qguard help (issue2040) 2010-02-15 00:12:10 +01:00
Brodie Rao
459206adee color: don't crash on invalid status codes (issue2036)
If an unknown file with a newline appears in the status output, color
shouldn't raise a KeyError trying to parse second line in the filename.
2010-02-14 17:08:52 -05:00
Brodie Rao
3a1961dd4f progress: make determinate bar more like wget progress bar
foo [                                                          ]  0/58
foo [>                                                         ]  1/58
foo [=>                                                        ]  2/58
...
foo [=======================================================>  ] 56/58
foo [========================================================> ] 57/58
foo [=========================================================>] 58/58

The bar now has a '>' character at the end. This indicates the direction,
is consistent with the indeterminate '<=>' bar, and looks much nicer.
2010-02-13 23:34:15 -05:00
Brodie Rao
1b6c146296 progress: simplify spacejoin() 2010-02-13 23:34:20 -05:00
timeless
6562078e97 progress: fix description 2010-02-14 00:46:13 +02:00
Wagner Bruna
7695270f81 interhg: fixes regression introduced by bb95879961db 2010-02-06 21:25:02 -02:00
Martin Geisler
f60d955070 progress: use inline literals in help string 2010-02-14 17:09:52 +01:00
Patrick Mezard
cdb100ac42 progress: make progress.refresh=0 always display the progress line
This has no effect in real world where progress.refresh in unlikely to be set
to zero, but is very useful in tests where all progress output is to be traced.
It failed on platforms with coarse time.time() granularity, like Windows+py25.
2010-02-14 15:42:47 +01:00
Brodie Rao
892ba5a830 remove unused imports 2010-02-14 01:52:31 -05:00
Patrick Mezard
c4cbe25bb9 progress: make use of progress.refresh 2010-02-14 13:58:30 +01:00
Augie Fackler
e22247c3bb progress: only reset state if finishing progress for the current topic
This prevents some visual glitches when doing a clone --pull locally.
2010-02-13 09:49:06 -06:00
Benoit Boissinot
0bb91a20fe progress: correctly handle empty progress topic 2010-02-13 09:55:28 +01:00
Benoit Boissinot
2fb508feae merge with mpm 2010-02-13 10:56:43 +01:00
Augie Fackler
a30e3bd4a9 Progress bar extension 2010-02-12 21:53:32 -06:00
Stefano Tortarolo
af6dab2fcc rebase: split line longer than 80 chars 2010-02-12 15:17:10 +01:00
Augie Fackler
0a5d2046b5 relink: properly use the progress API 2010-02-07 10:25:18 -06:00
Matt Mackall
a2acbc421b fix up a bunch of check-code warnings 2010-02-09 14:12:22 -06:00
Henrik Stuart
16f156af74 mq: remove unused import 2010-02-10 21:17:58 +01:00
Brendan Cully
7de7b4555d mq: incorporate mq repo config when using --mq
For example, incoming should use the paths defined in .hg/patches/hgrc
instead of .hg/hgrc.
2010-02-10 10:58:11 -08:00
Brendan Cully
3743c1ee43 mq: make init -Q do what qinit -c did 2010-02-08 10:50:00 +01:00
Brendan Cully
de80ca9367 mq: add -Q option to all commands not in norepo 2010-02-08 10:23:44 +01:00
Steve Losh
eea597d740 mq: add parent node IDs to MQ patches on qrefresh/qnew
The goal of this patch is to add the IDs of the parents of applied MQ patches
into the patch file headers whenever qnew or qrefresh are run.

This will serve as a reminder of when the patches last applied cleanly and
will let us do more intelligent things in the future, such as:

    * Resolve conflicts found when qpushing to a new location by merging
      instead of simply showing rejects.

    * Display better diffs of versioned MQ patches because we can tell how the
      patched files have changed in the meantime.

Here are the new rules this patch introduces.  They are checked in this order:

    * If a patch currently has old, plain-style patch headers ("From:" and
      "Date:") do not change the style or add any new headers.

    * If the 'mq.plain' configuration setting is true, only plain-style
      headers will be used for all MQ patches.

    * qnew will initialize new patches with HG-style headers and fill in the
      "# Parent" header with the appropriate parent node.

    * qrefresh will refresh the "# Parent" header with the current parent of
      the current patch.
2010-02-07 10:47:54 -05:00
Benoit Boissinot
328394047f fix coding style (reported by pylint) 2010-02-08 15:36:34 +01:00
Brendan Cully
5551943cd9 zeroconf: use DNS length field to safely skip unknown record types 2010-02-08 00:01:08 +01:00