Commits

rblank  committed 91d4a68

0.12.2dev: Mention the repository name in the suggested command when a repository directory has changed.

Closes #9761.

  • Participants
  • Parent commits 895b1bd
  • Branches 0.12-stable

Comments (0)

Files changed (1)

File trac/versioncontrol/cache.py

                         != os.path.normcase(self.name):
                     self.log.info("'repository_dir' has changed from %r to %r",
                                   repository_dir, self.name)
-                    raise TracError(_("The 'repository_dir' has changed, a "
-                                      "'trac-admin $ENV repository resync' "
-                                      "operation is needed."))
+                    raise TracError(_("The repository directory has changed, "
+                                      "you should resynchronize the "
+                                      "repository with: trac-admin $ENV "
+                                      "repository resync '%(reponame)s'",
+                                      reponame=self.reponame or '(default)'))
             elif repository_dir is None: # 
                 self.log.info('Storing initial "repository_dir": %s',
                               self.name)