comparison src/hgext3rd/hggit_serve/_export.py @ 16:78ea1ec94be5

Fix error message for auto-export setting.
author Paul Fisher <paul@pfish.zone>
date Fri, 20 Feb 2026 21:08:54 -0500
parents 959ef686193f
children
comparison
equal deleted inserted replaced
15:b65d5922b8ee 16:78ea1ec94be5
164 if auto_export == _AX_NEVER: 164 if auto_export == _AX_NEVER:
165 return 165 return
166 if auto_export == _AX_ALWAYS or git_handler.has_gitrepo(repo): 166 if auto_export == _AX_ALWAYS or git_handler.has_gitrepo(repo):
167 if auto_export not in (None, _AX_ALWAYS, _AX_DEFAULT): 167 if auto_export not in (None, _AX_ALWAYS, _AX_DEFAULT):
168 ui.warn( 168 ui.warn(
169 b'unrecognized auto-export setting %s; using %s', 169 b'unrecognized auto-export setting "'
170 auto_export, 170 + auto_export
171 _AX_DEFAULT, 171 + b'"; using "'
172 + _AX_DEFAULT
173 + b'"\n'
172 ) 174 )
173 if _is_importing(repo): 175 if _is_importing(repo):
174 ui.note(b'currently importing revs from git; not exporting\n') 176 ui.note(b'currently importing revs from git; not exporting\n')
175 return 177 return
176 repo.githandler.export_commits() 178 repo.githandler.export_commits()