Commit Graph

2395 Commits

Author SHA1 Message Date
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
Brendan Cully
d5437ba5b0 zeroconf: better fix for readName error
Stop parsing when an unknown type is seen, since it is impossible
to resynchronize on the stream.
2010-02-07 19:39:29 +01:00
Brendan Cully
182305d033 zeroconf: try utf-16 decoding if utf-8 fails 2010-02-07 18:37:14 +01:00
Augie Fackler
2df305a808 mq: fix deprecation mention, line length 2010-02-07 16:03:38 +01:00
Sune Foldager
3f138e6345 add -b/--branch option to clone, bundle, incoming, outgoing, pull, push 2010-02-07 15:23:46 +01:00
Augie Fackler
03f43e09ea qnew: ignore force option
This makes the default behavior the same as qnew --force, and
deprecates the force option.
2010-02-07 07:37:05 -06:00
Dirkjan Ochtman
d5c4ebd0b0 mq: fix typo, thanks pmezard 2010-02-07 14:53:17 +01:00
Patrick Mezard
1ce5274987 Merge with crew-stable 2010-02-07 14:43:21 +01:00
Sune Foldager
5020620fca interpret repo#name url syntax as branch instead of revision
Previously, the name part of an repo#name url was interpreted as a
revision, similar to using the --rev option. Now it is instead looked
up as a branch first, and if that succeeds all the heads of the branch
will be processed instead of just its tip-most head. If the branch
lookup fails, it will be assumed to be an revision as before (e.g. for
tags).
2010-02-07 14:29:07 +01:00
Dirkjan Ochtman
e11a173bf9 mq: don't warn on qpush against a branch head 2010-02-07 14:06:05 +01:00
Dirkjan Ochtman
38666f1574 mq: deprecate qinit and qcommit 2010-02-07 13:49:52 +01:00
Dirkjan Ochtman
7144a20940 mq: deprecate qsave, qrestore and related options 2010-02-07 12:34:02 +01:00
Dan Villiom Podlaski Christiansen
7bb072742b mq: remove qrefresh slow path (issue2025)
The slow path/fast path distinction has existed since mq was added to Mercurial
in 2006. The slow path was used whenever the refreshed revision wasn't the tip
2010-02-06 18:36:27 +01:00
Augie Fackler
eb981049ec zeroconf: gethostbyaddr may also fail with socket.herror 2010-02-05 10:16:52 -06:00
Christian Ebert
a215bd3d0b patchbomb: document [patchbomb] config section for addresses 2010-01-28 11:27:09 +00:00
David Soria Parra
ab20fd09d8 mq: Do not translate import message that are appended to commits.
We should not translate the "imported patch" message. The translated message
confuses the detection whether the user has not updated the commit message yet.
We try to avoid to translate generated commit messages.
2010-01-20 23:23:18 +01:00
Matt Mackall
595d66f424 Update license to GPLv2+ 2010-01-19 22:20:08 -06:00
Greg Ward
c0a5547680 share: be more explicit about the dangers of rollback. 2010-01-13 22:05:06 -05:00
Martin Geisler
d19ed4f0b8 relink: ensure consistent candidate order 2010-01-09 23:16:36 +01:00
Siddharth Agarwal
eab3968819 Add support for relinking on Windows.
Test and minor code change by Patrick Mézard <pmezard@gmail.com>
2010-01-08 18:48:39 +05:30
Patrick Mezard
e9130008f6 mq: preserve --git flag when folding patches
Without this, folding a git patch into a regular one downgrades the resulting
patch to a regular patch.
2010-01-01 19:53:05 +01:00
Patrick Mezard
a9ef9386bc mq: preserve --git flag when merging patches
Without this, merging a patch queue without diff.git=1 downgrades all git
patches to regular patches, losing data in the process.
2010-01-01 19:53:05 +01:00
Patrick Mezard
f07dfd4d40 mq: stop caching and sharing diff options
Several mq commands mutate the shared options which causes hard to track bugs
when multiple calls are combined.
2010-01-01 19:53:05 +01:00
Martin Geisler
cbf73c1303 win32text: do not mention hgext in warning 2009-12-23 20:31:35 +01:00
Christian Ebert
dd907fdefb keyword: go into restricted mode when transplanting
Expanded keyword is read into diff with transplant -b otherwise.
Test this scenario.

Thanks to Adam Berkes for providing an example case.
2009-12-23 12:04:17 +00:00
Christian Ebert
cbc3638bed keyword: do not monkeypatch diff when in restricted mode
kw_diff actually disabled restricted mode when 2 revisions were given,
because it effectively disables the extension in this case.

But the commands working with diff and patch need restricted mode
always enabled, i.e. expansion enabled when writing to the
working directory and - crucial for these commands - no expansion
when reading the filelog.
2009-12-23 12:04:04 +00:00
timeless
7f202fbf9b mq: qnew -f should reject merge working directories 2009-12-23 13:09:11 +01:00
Martin Geisler
70de345b15 hgext: enable extensions without "hgext." prefix in help texts 2009-12-22 00:50:03 +01:00
Greg Ward
b7fda83054 glog: fix "incompatible option" error message.
Options like 'only_branch' should be presented to the user as
'--only-branch'.
2009-12-18 15:05:42 -05:00
Matt Mackall
2487655eb4 convert: make hg sink cleanup safer 2009-12-16 16:42:58 -06:00
Nicolas Dumazet
a7b35aa08b graphlog: fix output when both a limit and a path are provided
Limit was interpreted as absolute, from the topmost revision, without
counting the number of revisions matching a given file.
Which caused "glog -lN file" to show sometimes less than N csets if
the file was not modified in all of the N previous csets.

glog will now match the behavior of log.
2009-12-11 15:25:33 +09:00
Patrick Mezard
ceda6d3ffc convert/svn: better handling of hg recursive call failure 2009-12-14 22:09:49 +01:00
Alexander Solovyov
023880fae9 schemes: url parts are counted from 1 2009-12-14 21:21:34 +02:00
Patrick Mezard
9499717be0 convert/svn: make sink recover gracefully from empty changeset
Otherwise when processing a changeset that in fact changes no files
(perhaps due to bug in import from CVS) can get something like:
  unexpected svn output:
  abort: unable to cope with svn output

Bug report and patch draft by Jesse Glick <jesse.glick@sun.com>
2009-12-07 12:44:15 -05:00
Nicolas Dumazet
6afdc121ac mq: qpop: remove added files before re-adding removed files
We need to do this to avoid file/directories conflicts.
This causes patches removing a committed file and replacing it
with a directory to be "unpoppable".
2009-12-11 15:09:52 +09:00
Sune Foldager
0bec7f7de3 patchbomb: fix bug introduced in a6a075e49b19 and add test
Thanks to Augie Fackler for reporting this.
2009-12-08 23:23:59 +01:00
Sune Foldager
d262a88c75 patchbomb: handle repository#rev URLs correctly 2009-12-06 23:22:17 +01:00
Sune Foldager
1a664ccf10 transplant: fix small bug when a patch fails while using --filter 2009-12-03 11:06:44 +01:00
Martin Geisler
faafb1f7f3 schemes: fixed typos in module docstring 2009-11-30 23:12:51 +01:00
Alexander Solovyov
57c962c64c schemes extension 2009-11-24 17:48:23 +02:00
Sune Foldager
2368eabe27 extdiff: respect --option in command aliases (issue949) 2009-11-30 19:37:38 +01:00
Christian Ebert
418943dab0 keyword: the CVS keyword is $RCSfile$, not $RCSFile$
http://cvsbook.red-bean.com/cvsbook.html#List%20Of%20Keywords

Fix default keyword map accordingly.
Keep $RCSFile$ for Mercurial backwards compatibility.
2009-11-26 10:51:17 +01:00
Martin Geisler
efe88f2ec3 keyword: sort demo output to ensure deterministic output 2009-11-26 20:50:16 +01:00
Martin Geisler
5ad36f40d3 extdiff: prevent exception on double-translation
The docstring is translated twice: once when used as a format string,
and once on display. The second translation fails when the first
translation introduces non-ASCII characters in the string.

The problem is that the gettext module calls unicode(message) on the
string, i.e., it decodes it to a Unicode string using the ASCII
encoding (the default encoding). By translating it into a Unicode
string here, the unicode() call becomes a noop.
2009-11-26 20:06:45 +01:00
Nicolas Dumazet
7639059665 inotify: improve error messages
* prefix messages by inotify-(client|server)
* make sure that all warning and abort messages use the same format.
* in the case where inotify.sock is an old broken symlink, say so and abort
  instead of trying to overwrite the already existing link
2009-11-19 11:06:01 +09:00
Nicolas Dumazet
696edec52d inotify: add a inotify.pidfile configuration possibility
This will mainly help us in our tests to log pids of inotify servers
started implicitely, to make sure that unkilled inotify daemons do not clutter
the output of unrelated tests.

Also desactivate the workaround introduced in 37824a274d63
2009-11-17 15:36:09 +09:00
Dan Villiom Podlaski Christiansen
d5e8634932 qseries: don't truncate the patch name (issue1912)
Instead of truncating the entire output line of `qseries', only the
summary is truncated.
2009-11-17 22:16:41 +01:00
Brendan Cully
1ce45ec1c3 Allow import --no-commit over an applied MQ patch.
Since it only changes the working directory, it does not matter whether a patch is
applied. This change makes it easier to use hg import --no-commit instead of patch.
2009-11-16 11:31:08 -08:00
Patrick Mezard
7155946405 convert/svn: fix warning when repo detection failed 2009-11-16 14:09:31 +01:00
Martin Geisler
85252bdcb6 diff: change --inverse to --reverse
This fixes an incompatibility with patch(1), which also uses --reverse
for reversed diffs. The --inverse flag was added in 0f0383897d54. That
name was chosen over --reverse since it was thought that --reverse
would make --rev ambiguous.

It turns out that both flags can co-exist, with the cost that --rev
can no longer be shortened to --r and --re. Since one can always use
the short -r option, this is not a real problem.
2009-11-14 14:21:53 +01:00
Nicolas Dumazet
fd600dc328 inotify: Do not access inotify when dirstate is dirty (issue1811)
Original patch was provided by Simon Heimberg

It delegates dirstate computation to dirstate.status when dirstate is dirty:
better be slow from time to time instead of using wrong data.

This solves issue1719. As the last component, issue1810, is still not solved,
test-inotify-dirty-dirstate will fail for now. It emphasizes a regression due
to e8efd88001e7:

changeset:   9515:e8efd88001e7
user:        Nicolas Dumazet <nicdumz.commits@gmail.com>
date:        Sun Aug 16 11:11:37 2009 +0900
summary:     inotify: use cmdutil.service instead of local daemonizing code

Ancestors of 7c01599dd30 are passing the test, when applied this patch.
Regression has to be investigated, but this patch is important since it affects
often mq operations.
2009-11-11 14:38:59 +09:00
Nicolas Dumazet
800658e086 inotify: mark directories visited during lookup (issue1844)
Emulate the match.dir calls that are made in dirstate.walk:
 * first mark the visited directories on the server side
 * then extend the transmitted response to include this directory list
 * and lastly call match.dir on each directory
2009-11-13 08:31:10 +09:00
Brodie Rao
4f62e5a654 pager: provide a default attend list
The default list includes commands which normally print large amounts of
text. This should be more user-friendly than paging all commands by default,
which can be confusing when the pager swallows input prompts (with, e.g.,
record, merge, HTTP/SSH authentication, etc.)
2009-11-12 10:29:40 -05:00
Patrick Mezard
709ae7efd4 convert/svn: fix HTTP detection bug introduced by bf008106de6f
The probe expected response is a 404 with content, and while urllib returns the
response body in this case, urllib2 raises an HTTP error.
2009-11-12 12:05:43 +01:00
Martin Geisler
2f62f669cf record: handle translated prompt correctly
The prompt function would return 'y' or 'n' untranslated. This should
therefore not be compared to _('y') and _('n'). However, it turns out
that prompt could just as well return a good old Boolean.
2009-11-11 22:53:01 +01:00
Patrick Mezard
e5e2172bf6 convert/svn: delegate to svn bindings if HTTP probe fails
convert extension tries to guess the remote repository type with HTTP probes.
Unfortunately, it does not handle authentication or HTTPS handshakes, so regular
svn repositories may be excluded. Instead, when a non-404 error is retrieved,
we keep trying with the svn bindings. The drawback is missing svn bindings will
make the conversion to fail even for non-svn targets. This can be avoided with
--source.
2009-11-11 19:45:00 +01:00
Martin Geisler
ff95857722 mq: fix literal blocks in docstrings 2009-11-11 00:05:12 +01:00
Patrick Mezard
1edfa4d1df convert/mtn: handle change in mtn 0.45 certs output 2009-11-10 23:45:24 +01:00
Patrick Mezard
d8a8eb5584 convert: reenable SVN support after license issue solved 2009-11-10 22:32:17 +01:00
Patrick Mezard
29f1e65f87 patchbomb: normalize date format in generated mboxes
mbox format should use time.asctime(). Unfortunately, this function writes
2-characters day of week on Windows while unix one writes a single character.
Normalize to Windows version since the other one can hardly be written with
strftime().
2009-11-08 18:08:24 +01:00
Christian Boos
62e4f8e6b2 rebase: make sure the newancestor is used during the whole update
(issue1561)

Before this change, newancestor was used only once as a replacement
for ancestor.ancestor, but merge.update calls ancestor.ancestor
several times, so it ends up with the "wrong" ancestor (the real
ancestor, but we want the parent of the rebased changeset for all but
the first rebased changeset).

Added a new test case for this: test-rebase-newancestor.

Also, in one scenario in test-rebase-collapse, there was a spurious
conflict caused by the same issue, so that test case was fixed by
removing the now unneeded conflict resolution and the output was
adapted accordingly.
2009-11-09 20:15:49 +01:00
Martin Geisler
3da08922b3 relink: do not translate format string with no text 2009-11-08 00:11:34 +01:00
Martin Geisler
1f42ec8873 mq: do not call ui.username unless it is necessary
After changeset 54b67f7bd5df, ui.username will abort by default if no
username is set. It is therefore wrong to call ui.username when a
username was provided on the command line.
2009-11-07 00:13:05 +01:00
Jesse Glick
1c304ddf8b Issue919: add a standard extension to recreate hardlinks between repositories.
Having to run a standalone Python script from the contrib dir is a nuisance.
Also makes various improvements to locking, file discovery, etc.
Should also update: http://www.selenic.com/mercurial/wiki/index.cgi/RecreateHardlinksBetweenRepositories
2009-11-05 17:38:03 -05:00
Yannick Gingras
ed1d8b7e7a diff: add --inverse option
Most of the time, one can reverse a diff by swapping the revisions passed with
-r but it happens that if you use the global -R, and diff against the tip of
the current repo, you can't swap the revisions. One use-case for that is
reviewing changes from a bundle before unbundling. One could also pipe the
output of `hg diff` to a command line filter that reverses the diff, but that
would remove the benefit from color diffs. Therefore, having an option in
`hg diff` to reverse a diff is a good thing.

The option flag selection was tricky. GNU patch uses -R/--reverse but -R is
already used as a global option and --reverse would make --rev ambiguous.
2009-11-05 15:18:56 +01:00
Dirkjan Ochtman
12c5890a70 kill trailing whitespace 2009-11-05 10:44:36 +01:00
Martin Geisler
769cf16d06 color: wrap qrecord
The qrecord command is registered in uisetup phase, so we do our
wrapping in extsetup phase.
2009-11-05 01:11:28 +01:00
Martin Geisler
c8914d5f89 record: use uisetup instead of extsetup to register qrecord
New commands should be registered in uisetup so that other extensions
have a change of wrapping them in extsetup.
2009-11-05 01:10:43 +01:00
Benoit Boissinot
fe9a5e5ec3 record: get the right position (account for skipped files) 2009-11-01 02:57:11 +01:00
Alexander Solovyov
1c0a00c05d churn: fix --progress (broken by 37a70f0b3ab8) 2009-10-30 15:43:01 +02:00
Alexander Solovyov
6b680abcf9 churn: fix changeset count (broken by 0fc99cecabb9) 2009-10-30 13:40:23 +02:00
Alexander Solovyov
af41ec3842 churn: ability to display added/removed lines separately 2009-10-29 20:50:24 +02:00
Matt Mackall
4d8e4508a9 walkchangerevs: drop ui arg 2009-10-29 19:03:16 -05:00
Matt Mackall
de712b58f9 walkchangerevs: move 'add' to callback
Now walkchangerevs is a simple iterator over contexts
2009-10-29 17:07:51 -05:00
Matt Mackall
74ca11743b Merge with crew 2009-10-27 17:14:19 -05:00
Matt Mackall
0366236cf5 walkchangerevs: internalize ctx caching 2009-10-27 17:01:32 -05:00
Matt Mackall
67e7c0b434 walkchangerevs: yield contexts 2009-10-25 18:43:59 -05:00
Matt Mackall
69f8478d8c walkchangerevs: pull out matchfn
* * *
imported patch mercurial/commands.py
2009-10-25 18:43:56 -05:00
Alexander Solovyov
3603882f18 patchbomb: accept default if it is empty string
This fixes Cc: prompt.
2009-10-25 14:28:02 +01:00
Martin Geisler
d0b16ead31 patchbomb: fix double-spaces in prompts 2009-10-25 14:24:39 +01:00
Alexander Solovyov
2a7b51f2e1 bookmarks: use API to determine if repo is local 2009-10-25 12:05:07 +02:00
Brodie Rao
7c2f2247c5 diffstat: with --git, mark binary files with Bin
Normally, diffs without any text insertions or deletions are reported
as having 0 lines changed by stock diffstat. Compatibility is
preserved with stock diffstat in this case, but when using --git,
binary files are marked with Bin as a means of clarification.

git diff --stat does something similar, though it also includes the
old and new file sizes.
2009-10-25 02:53:33 +02:00
Brodie Rao
2306a92219 color: colorize diff --stat 2009-10-25 02:52:36 +02:00
Brodie Rao
8c7629d9e4 diff: add --stat for diffstat output
diff/qdiff --stat invokes patch.diffstat() on the diff output.

When in interactive mode, the output's maximum width is determined by the
terminal's width.
2009-10-25 02:52:35 +02:00
Martin Geisler
5a115c8c69 convert: document parent order in splicemap help (issue1764) 2009-10-23 22:55:28 +02:00
Peter Arrenbrecht
cd8ecf5642 graphlog: hide internal state of ascii() from users 2009-10-21 14:16:37 +02:00
Alexander Solovyov
e3586100e3 fix patchbomb prompt when sending series of patches 2009-10-19 23:27:20 +03:00
Mads Kiilerich
0f7110ec11 Merge with redone 9660769e6539 (issue1860) 2009-10-16 11:19:39 +02:00
Mads Kiilerich
1c7c19b2e6 Redo 9660769e6539 (issue1860) 2009-10-16 11:16:42 +02:00
Martin Geisler
48349e3ff0 Merge with crew-stable 2009-10-16 00:45:18 +02:00
Benoit Allard
f444222eca mq: fix traceback for qpush inexistant-patch with no patch applied 2009-10-16 00:09:18 +02:00
Patrick Mezard
990e7895a0 Merge with crew-stable 2009-10-16 00:06:23 +02:00
Patrick Mezard
f235a47953 convert/svn: better error when hg cannot call itself (issue1838) 2009-10-15 23:15:30 +02:00
timeless@mozdev.org
1ee61bd64c rebase: change rebase help to talk about changesets and branch names 2009-10-14 20:55:39 +03:00
Stephen Rasku
15c682540c mq: changed help for qpop -f to reflect actual behaviour 2009-10-14 21:21:09 -07:00
Sune Foldager
ded10074e6 rebase: return early when source is descendant of destination
This only happens when using --base (or no source selection options), as
rebase already aborts in this situation when using --source.

Without this change you get an abort from the underlying merge, and the
repository is in a different state than you started with (the working
dir parent is changed).
2009-10-08 10:39:43 +02:00
Sune Foldager
4ecbc53304 rebase: improve error and debug messages 2009-10-08 10:07:41 +02:00
Matt Mackall
879810b360 Merge with -crew-stable 2009-10-07 23:45:30 -05:00
Matt Mackall
daf9754427 Merge with -crew-stable 2009-10-07 23:25:41 -05:00
Kevin Bullock
a530135c8c color: allow multiple args to ui.write() 2009-10-07 14:01:20 -05:00
TK Soh
3b5f06859c color: add support for record extension 2009-10-08 09:27:22 +08:00
Patrick Mezard
4b72f54672 convert/hg: handle bogus copy records (issue1843) 2009-10-07 18:52:01 +02:00
Patrick Mezard
d54423a4e5 convert/hg: make parents() return changectx, not nodes 2009-10-07 10:13:04 +02:00
Patrick Mezard
9c21a28056 Merge with crew-stable 2009-10-07 22:50:20 +02:00
Patrick Mezard
0133f8d115 convert/cvs: stop supporting external cvsps 2009-10-05 22:57:15 +02:00
Patrick Mezard
c1dcf4d3bd Merge with crew-stable 2009-10-05 22:17:39 +02:00
Patrick Mezard
6fe64cf348 convert: make mapfile handle LF and CRLF shamap (issue1846) 2009-10-05 22:01:08 +02:00
Patrick Mezard
fd35df4182 Merge with crew-stable 2009-10-04 23:16:54 +02:00
Patrick Mezard
0ee3fec16c convert/darcs: handle directory renaming 2009-10-04 23:06:14 +02:00
Patrick Mezard
e3432a31a9 convert/darcs: fix file renaming (issue1853) 2009-10-04 22:23:11 +02:00
Matt Mackall
13b406f027 Merge with -stable 2009-10-03 14:39:57 -05:00
David Champion
93e20c18e6 notify: permit suppression of merge changeset notification
In some environments merges occur regularly but with no conflicts, and
committers find merge notifications more of a bother than a help.

By setting merge=False in [notify], merge notifications are suppressed.
This works both for incoming and for changegroup hooks.
2009-09-23 02:31:09 -05:00
Shun-ichi GOTO
a63337a60d win32mbcs: util.normpath should be wrapped.
It is because util.normpath() finally calls windows.pconvert()
which is not wrapped (by changeset:7f85efa178c8).
2009-09-18 21:25:47 +09:00
Matt Mackall
641c3945ad Merge with crew 2009-09-14 17:32:55 -05:00
Matt Mackall
921ef4d657 Merge qprev/qnext backout 2009-09-14 17:29:47 -05:00
Matt Mackall
77949f88d1 Backed out premature qprev/qnext removal 2009-09-14 16:39:24 -05:00
Patrick Mezard
01b7d3fa6f Merge with crew-stable 2009-09-13 17:53:09 +02:00
Patrick Mezard
54f5a65629 zeroconf: fix hgweb published URLs (issue1819) 2009-09-13 17:23:47 +02:00
Thomas Arendsen Hein
9df07442ce Add new flag [-1] to synopsis of qapplied/qunapplied 2009-09-11 16:58:19 +02:00
timeless@mozdev.org
8ec7a3012a record: remove superfluous space 2009-09-13 03:04:40 +03:00