Show More
@@ -289,6 +289,10 b' class localrepository(object):' | |||||
289 | @storecache('obsstore') |
|
289 | @storecache('obsstore') | |
290 | def obsstore(self): |
|
290 | def obsstore(self): | |
291 | store = obsolete.obsstore(self.sopener) |
|
291 | store = obsolete.obsstore(self.sopener) | |
|
292 | if store and not obsolete._enabled: | |||
|
293 | # message is rare enough to not be stranlated | |||
|
294 | msg = 'obsolete feature not enabled but %i markers found!\n' | |||
|
295 | self.ui.warn(msg % len(list(store))) | |||
292 | return store |
|
296 | return store | |
293 |
|
297 | |||
294 | @propertycache |
|
298 | @propertycache |
@@ -492,3 +492,17 b' Do not warn about new head when the new ' | |||||
492 | adding manifests |
|
492 | adding manifests | |
493 | adding file changes |
|
493 | adding file changes | |
494 | added 1 changesets with 1 changes to 1 files (+1 heads) |
|
494 | added 1 changesets with 1 changes to 1 files (+1 heads) | |
|
495 | ||||
|
496 | Checking _enable=False warning if obsolete marker exist | |||
|
497 | ||||
|
498 | $ echo '[extensions]' >> $HGRCPATH | |||
|
499 | $ echo "obs=!" >> $HGRCPATH | |||
|
500 | $ hg log -r tip | |||
|
501 | obsolete feature not enabled but 7 markers found! | |||
|
502 | changeset: 6:d6a026544050 | |||
|
503 | tag: tip | |||
|
504 | parent: 3:5601fb93a350 | |||
|
505 | user: test | |||
|
506 | date: Thu Jan 01 00:00:00 1970 +0000 | |||
|
507 | summary: add obsolete_e | |||
|
508 |
General Comments 0
You need to be logged in to leave comments.
Login now