# HG changeset patch # User Sylvain Thénault # Date 1269591549 -3600 # Node ID 4781870e97d9003a6f91c0a92975f6b5e3eb9ac3 # Parent 441191f7def1c7042dea6b627ac39f5239a4dcfe [maintainance] don't crash if we've no in-memory repository diff -r 441191f7def1 -r 4781870e97d9 server/migractions.py --- a/server/migractions.py Fri Mar 26 09:18:21 2010 +0100 +++ b/server/migractions.py Fri Mar 26 09:19:09 2010 +0100 @@ -69,7 +69,7 @@ elif connect: self.repo_connect() # no config on shell to a remote instance - if config is not None: + if config is not None and (cnx or connect): self.session.data['rebuild-infered'] = False self.repo.hm.call_hooks('server_maintenance', repo=self.repo) if not schema: