Mercurial > evolve
comparison hgext3rd/topic/__init__.py @ 4280:ff799015d62e
packaging: merge with version 8.3.2
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Tue, 27 Nov 2018 04:46:35 +0100 |
parents | d5a2cc19903f 48da02d7f8eb |
children | 69fb9e41ce2b |
comparison
equal
deleted
inserted
replaced
4279:48da02d7f8eb | 4280:ff799015d62e |
---|---|
175 # (first pick I could think off, update as needed | 175 # (first pick I could think off, update as needed |
176 'log.topic': 'green_background', | 176 'log.topic': 'green_background', |
177 'topic.active': 'green', | 177 'topic.active': 'green', |
178 } | 178 } |
179 | 179 |
180 __version__ = '0.12.3.dev' | 180 __version__ = '0.13.0.dev' |
181 | 181 |
182 testedwith = '4.3.3 4.4.2 4.5.2 4.6.2 4.7' | 182 testedwith = '4.4.2 4.5.2 4.6.2 4.7' |
183 minimumhgversion = '4.3' | 183 minimumhgversion = '4.4' |
184 buglink = 'https://bz.mercurial-scm.org/' | 184 buglink = 'https://bz.mercurial-scm.org/' |
185 | 185 |
186 if util.safehasattr(registrar, 'configitem'): | 186 if util.safehasattr(registrar, 'configitem'): |
187 | 187 |
188 from mercurial import configitems | 188 from mercurial import configitems |
678 wl = repo.wlock() | 678 wl = repo.wlock() |
679 lock = repo.lock() | 679 lock = repo.lock() |
680 txn = repo.transaction('rewrite-topics') | 680 txn = repo.transaction('rewrite-topics') |
681 rewrote = _changetopics(ui, repo, touchedrevs, topic) | 681 rewrote = _changetopics(ui, repo, touchedrevs, topic) |
682 txn.close() | 682 txn.close() |
683 ui.status('changed topic on %d changes\n' % rewrote) | 683 if topic is None: |
684 ui.status('cleared topic on %d changesets\n' % rewrote) | |
685 else: | |
686 ui.status('changed topic on %d changesets to "%s"\n' % (rewrote, | |
687 topic)) | |
684 finally: | 688 finally: |
685 lockmod.release(txn, lock, wl) | 689 lockmod.release(txn, lock, wl) |
686 repo.invalidate() | 690 repo.invalidate() |
687 return | 691 return |
688 | 692 |