Merge pull request #1757 from ZyX-I/hglib-close

Do not forget to collect mercurial servers
This commit is contained in:
Nikolai Aleksandrovich Pavlov 2017-04-24 21:35:04 +03:00 committed by GitHub
commit ca8245b9e8
1 changed files with 14 additions and 14 deletions

View File

@ -63,7 +63,7 @@ class Repository(object):
return self.do_status(self.directory, path)
def do_status(self, directory, path):
repo = self._repo(directory)
with self._repo(directory) as repo:
if path:
path = os.path.join(directory, path)
statuses = repo.status(include=path, all=True)