comparison hgext/convert/__init__.py @ 21077:78b15ad2f968

convert: backout 81cf597dafa9 and a3545c3104aa -closemap Closemap solves a very specific use case. It would be better to have a more generic solution than to have to maintain this forever. Closemap has not been released yet and removing it now will not break any backward compatibility contract. There is no test coverage for closemap but it seems like the same can be achieved with a simple and much more powerful custom extension: import hgext.convert.hg class source(hgext.convert.hg.mercurial_source): def getcommit(self, rev): c = super(source, self).getcommit(rev) if rev in [''' d643f67092ff123f6a192d52f12e7d123dae229f 9117c6561b0bd7792fa13b50d28239d51b78e51f f368a1c302d5b87506f7edb13769e591e063d7ea ''']: c.extra = c.extra.copy() c.extra['close'] = '1' return c hgext.convert.hg.mercurial_source = source
author Mads Kiilerich <madski@unity3d.com>
date Wed, 16 Apr 2014 01:10:08 +0200
parents 5236c7a72a2d
children f0dbafceeb9a
comparison
equal deleted inserted replaced
21076:5236c7a72a2d 21077:78b15ad2f968
139 where "original_branch_name" is the name of the branch in the 139 where "original_branch_name" is the name of the branch in the
140 source repository, and "new_branch_name" is the name of the branch 140 source repository, and "new_branch_name" is the name of the branch
141 is the destination repository. No whitespace is allowed in the 141 is the destination repository. No whitespace is allowed in the
142 branch names. This can be used to (for instance) move code in one 142 branch names. This can be used to (for instance) move code in one
143 repository from "default" to a named branch. 143 repository from "default" to a named branch.
144
145 The closemap is a file that allows closing of a branch. This is useful if
146 you want to close a branch. Each entry contains a revision or hash
147 separated by white space.
148 144
149 Mercurial Source 145 Mercurial Source
150 ################ 146 ################
151 147
152 The Mercurial source recognizes the following configuration 148 The Mercurial source recognizes the following configuration
322 _('remap file names using contents of file'), _('FILE')), 318 _('remap file names using contents of file'), _('FILE')),
323 ('', 'splicemap', '', 319 ('', 'splicemap', '',
324 _('splice synthesized history into place'), _('FILE')), 320 _('splice synthesized history into place'), _('FILE')),
325 ('', 'branchmap', '', 321 ('', 'branchmap', '',
326 _('change branch names while converting'), _('FILE')), 322 _('change branch names while converting'), _('FILE')),
327 ('', 'closemap', '',
328 _('closes given revs'), _('FILE')),
329 ('', 'branchsort', None, _('try to sort changesets by branches')), 323 ('', 'branchsort', None, _('try to sort changesets by branches')),
330 ('', 'datesort', None, _('try to sort changesets by date')), 324 ('', 'datesort', None, _('try to sort changesets by date')),
331 ('', 'sourcesort', None, _('preserve source changesets order')), 325 ('', 'sourcesort', None, _('preserve source changesets order')),
332 ('', 'closesort', None, _('try to reorder closed revisions'))], 326 ('', 'closesort', None, _('try to reorder closed revisions'))],
333 _('hg convert [OPTION]... SOURCE [DEST [REVMAP]]')), 327 _('hg convert [OPTION]... SOURCE [DEST [REVMAP]]')),