Commit Graph

88 Commits

Author SHA1 Message Date
Brodie Rao
203cf2fbd9 cleanup: remove unused imports 2010-08-27 13:32:38 -04:00
Martin Geisler
e7bd3fc69a Merge with stable 2010-08-14 03:30:35 +02:00
Benoit Boissinot
21c145b776 rebase: recompute the set of skipped rev when using --continue (issue2330) 2010-08-13 18:02:02 +02:00
Alecs King
87357bf43e minor style fix: hgext/rebase.py:157 -- line too long
found by a run of check-code
2010-08-07 12:55:30 +08:00
timeless
ead95bc677 rebase/progress: Adding progress for rebasing 2010-07-20 20:53:48 +02:00
Nicolas Dumazet
9085ce94e6 mq: qrepo.add(mq.added) inside save_dirty inside of doing it manually
This should make the MQ API more transparent: callers only have to
call save_dirty, and no mq.added magic or knowledge is required.
2010-07-13 22:30:01 +09:00
Nicolas Dumazet
2d7fd252ec rebase: small cosmetic cleanups 2010-07-12 19:04:07 +09:00
Nicolas Dumazet
a34bba6494 rebase: re-add patches to mq repo after rebase
Since b4eaab2f8dee, we are adding patches after the qimport call, and not
inside it anymore. Correct updatemq to match the new behaviour.
2010-07-13 20:12:32 +09:00
FUJIWARA Katsunori
ce06b102df help: show value requirement and multiple occurrence of options
this helps users to know what kind of option is:

  - no value is required(flag option)
  - value is required
  - value is required, and multiple occurrences are allowed

each kinds are shown as below:

 -f --force              force push
 -e --ssh CMD            specify ssh command to use
 -b --branch BRANCH [+]  a specific branch you would like to push

if one or more 3rd type options are shown, explanation for '[+]' mark
is also shown as footnote.
2010-06-06 17:25:00 +09:00
Stefano Tortarolo
28423089a9 rebase: --abort doesn't strip away the target changeset (issue2220)
When a changeset is skipped, rebase keeps the previous target as next
target and if the skipped cset is the first one, the recorded target is
actually the original target.
--abort did not detect this situation but simply stripped away the cset.
2010-06-08 18:01:07 +02:00
Matt Mackall
ae637a04b0 rebase: use usual util.abort rather than error.ParseError 2010-06-04 17:22:33 -05:00
Matt Mackall
dd998094a7 rebase: add error codes
Suggested by Dirk Hasselbalch
2010-05-20 15:58:16 -05:00
Matt Mackall
639d751bf4 rebase: improve --abort failure message 2010-05-20 15:20:25 -05:00
Matt Mackall
70ee1c01f7 rebase: only show "rebase completed" message with -v 2010-05-20 15:15:11 -05:00
Matt Mackall
0f3c7b919c Fix up rebase's handling of strip backups 2010-05-20 12:21:35 -05:00
Martin Geisler
3411550e7e Merge with stable 2010-05-17 21:30:00 +02:00
Martin Geisler
adcdd57662 rebase: stress that only local changesets should be rebased 2010-05-17 21:16:35 +02: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
Benoit Boissinot
4b556a742a mq: avoid many hex/bin conversions, keep the binary node when possible 2010-03-14 00:36:10 +01: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
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
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
Martin Geisler
42e9951ca6 Merge with stable 2010-03-12 00:50:41 +01: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
Stefano Tortarolo
af6dab2fcc rebase: split line longer than 80 chars 2010-02-12 15:17:10 +01:00
Matt Mackall
a2acbc421b fix up a bunch of check-code warnings 2010-02-09 14:12:22 -06:00
Stefano Tortarolo
55113af70e rebase: add --detach option to detach intermediate revisions (issue1950)
When rebasing an intermediate revision, rebase keeps a parent relationship
with the original parent. This option forces the removal of this relationship.
In more depth, it 'fakes' null merges between the target revision and the
ancestors of source, dropping every change from the ancestors.
The result is that every change in source and its descendants will be rebased,
ignoring the changes in its ancestors.
2010-02-06 10:51:50 +01:00
Stefano Tortarolo
31012dcbb3 rebase: refactoring
Separate rebase-specific functions, in order to provide a better base to
extend rebase's capabilities.

Note that this will be useful especially to share functions with 'adapt'.
2010-01-31 13:30:17 +01:00
Matt Mackall
595d66f424 Update license to GPLv2+ 2010-01-19 22:20:08 -06: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
48349e3ff0 Merge with crew-stable 2009-10-16 00:45:18 +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
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
Martin Geisler
9f1896c083 do not attempt to translate ui.debug output 2009-09-19 01:15:38 +02:00
Martin Geisler
a17f0cee1b do not translate commit messages
It is not very helpful to have 'Added tag %s for changeset %s' and
similar messages translated into different languages when people work
together using different locales.

We now use English strings without support for translations. If
needed, the user can still supply a custom string for most commands.
2009-07-22 22:50:34 +02:00
Martin Geisler
21dcc78b42 rebase: link to RebaseExtension
This new page has the usual user-oriented information about the
extension.
2009-08-03 00:19:01 +02:00
Martin Geisler
c61cf56b38 rebase: wrap docstrings at 70 characters 2009-07-26 01:59:59 +02:00
Martin Geisler
f69f24cd76 merge with crew-stable 2009-07-22 22:56:45 +02:00
Martin Geisler
165ad8475f rebase: wrapped docstrings at 78 characters 2009-07-07 23:54:42 +02:00
Dirkjan Ochtman
1d29e68744 change wiki/bts URLs to point to new hostname 2009-06-24 15:32:37 +02:00
Dirkjan Ochtman
0448417ea2 extensions: change descriptions for extensions providing a few commands 2009-06-24 13:42:02 +02:00
Matt Mackall
c1213eaf9d commit: drop the now-unused files parameter 2009-06-01 14:11:32 -05:00
Matt Mackall
a0b80d611a rebase: remove unneeded status call before commit 2009-06-01 13:51:21 -05:00
Martin Geisler
d6db5e0057 use ui instead of repo.ui when the former is in scope 2009-05-24 22:37:20 +02:00
Benoit Boissinot
2768c86b11 rebase: use set instead of dict 2009-05-17 02:55:22 +02:00