Commits

Yuya Nishihara committed 1ccde77

rename bareRepo

Comments (0)

Files changed (2)

ra-ownbyagent.diff

 +            if root in thgrepo._agentcache:
                  # repositories already opened keep their ui instances in sync
 -                repo = thgrepo._repocache[root]
-+                repo = thgrepo._agentcache[root].bareRepo()
++                repo = thgrepo._agentcache[root].rawRepository()
                  ui = repo.ui
              elif paths.is_on_fixed_drive(root):
                  # directly read the repository's configuration file
 -        return repo
 -    if path not in _repocache:
 +        agent = RepoAgent(repo)
-+        return agent.bareRepo()
++        return agent.rawRepository()
 +    if path not in _agentcache:
          if _ui is None:
              _ui = uimod.ui()
 -            return repo
 +            agent = RepoAgent(repo)
 +            _agentcache[path] = agent
-+            return agent.bareRepo()
++            return agent.rawRepository()
          except EnvironmentError:
              raise error.RepoError('Cannot open repository at %s' % path)
      if not os.path.exists(os.path.join(path, '.hg/')):
          # this error must be in local encoding
          raise error.RepoError('%s is not a valid repository' % path)
 -    return _repocache[path]
-+    return _agentcache[path].bareRepo()
++    return _agentcache[path].rawRepository()
  
  class _LockStillHeld(Exception):
      'Raised to abort status check due to lock existence'
          watcher.workingDirectoryChanged.connect(self.workingDirectoryChanged)
          watcher.workingBranchChanged.connect(self.workingBranchChanged)
  
-+    def bareRepo(self):
++    def rawRepository(self):
 +        return self._repo
 +
      def pollStatus(self):
+thgrepo-nocreate.diff
 ra-splitwatcher.diff
-thgrepo-nocreate.diff
 ra-rename.diff
 ra-ownbyagent.diff
 caprevlog.diff