Mercurial > hg
comparison hgext/convert/__init__.py @ 19891:e271970b9821
convert: introduce hg.revs to replace hg.startrev and --rev with a revset
The existing knobs for controlling which revisions to convert were often
insufficient. Revsets is a shiny hammer that provides a better solution.
Revsets has been introduced in --rev handling in a lot of other places while
being more or less backwards compatible. Doing the same here would be a much
more elegant ... but that would unfortunately not work in this case. "--rev 7"
used to mean revision 0 to 7 - it would be an unacceptable change if it
suddenly just meant revision 7.
Instead we introduce a new configuration setting. It will only work for
Mercurial repositories so adding a new commandline option for it would not be a
nice solution.
There is no way to use the fancy deprecation markup for configuration settings
so we just remove the documentation of hg.startrev.
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Sat, 20 Jul 2013 00:43:08 +0200 |
parents | 1ce3f56b879f |
children | 81cf597dafa9 7f4cf938643d |
comparison
equal
deleted
inserted
replaced
19890:9057855d8749 | 19891:e271970b9821 |
---|---|
153 | 153 |
154 :convert.hg.saverev: store original revision ID in changeset | 154 :convert.hg.saverev: store original revision ID in changeset |
155 (forces target IDs to change). It takes a boolean argument and | 155 (forces target IDs to change). It takes a boolean argument and |
156 defaults to False. | 156 defaults to False. |
157 | 157 |
158 :convert.hg.startrev: convert start revision and its descendants. | 158 :convert.hg.revs: revset specifying the source revisions to convert. |
159 It takes a hg revision identifier and defaults to 0. | |
160 | 159 |
161 CVS Source | 160 CVS Source |
162 ########## | 161 ########## |
163 | 162 |
164 CVS source will use a sandbox (i.e. a checked-out copy) from CVS | 163 CVS source will use a sandbox (i.e. a checked-out copy) from CVS |