Mercurial > evolve
comparison hgext3rd/topic/__init__.py @ 1947:3458aa1027e6
patch: remove version compatibility check
We don't support anything under 3.7.
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Wed, 30 Mar 2016 22:04:25 -0700 |
parents | 72246b13bd72 |
children | 54810b543bf4 |
comparison
equal
deleted
inserted
replaced
1946:72246b13bd72 | 1947:3458aa1027e6 |
---|---|
345 | 345 |
346 def _importtopic(repo, patchdata, extra, opts): | 346 def _importtopic(repo, patchdata, extra, opts): |
347 if 'topic' in patchdata: | 347 if 'topic' in patchdata: |
348 extra['topic'] = patchdata['topic'] | 348 extra['topic'] = patchdata['topic'] |
349 | 349 |
350 if util.safehasattr(cmdutil, 'extraexport'): | 350 cmdutil.extraexport.append('topic') |
351 cmdutil.extraexport.append('topic') | 351 cmdutil.extraexportmap['topic'] = _exporttopic |
352 cmdutil.extraexportmap['topic'] = _exporttopic | 352 cmdutil.extrapreimport.append('topic') |
353 if util.safehasattr(cmdutil, 'extrapreimport'): | 353 cmdutil.extrapreimportmap['topic'] = _importtopic |
354 cmdutil.extrapreimport.append('topic') | 354 patch.patchheadermap.append(('EXP-Topic', 'topic')) |
355 cmdutil.extrapreimportmap['topic'] = _importtopic | |
356 if util.safehasattr(patch, 'patchheadermap'): | |
357 patch.patchheadermap.append(('EXP-Topic', 'topic')) | |
358 | 355 |
359 extensions.afterloaded('rebase', _fixrebase) | 356 extensions.afterloaded('rebase', _fixrebase) |
360 | 357 |
361 entry = extensions.wrapcommand(commands.table, 'commit', commitwrap) | 358 entry = extensions.wrapcommand(commands.table, 'commit', commitwrap) |
362 entry[1].append(('t', 'topic', '', | 359 entry[1].append(('t', 'topic', '', |