From e8fe7696e2fc6334ef96495ea6d9d71354c53b6d Mon Sep 17 00:00:00 2001 From: zuber Date: Thu, 13 Aug 2009 15:27:01 +0200 Subject: [PATCH 1/1] =?utf8?q?Enkodowanie=20nazw=20plik=C3=B3w=20do=20UTF-?= =?utf8?q?8=20przed=20przekazaniem=20ich=20do=20localrepo.commit.=20Powinn?= =?utf8?q?o=20to=20usun=C4=85=C4=87=20b=C5=82=C4=85d=20kodowania=20znak?= =?utf8?q?=C3=B3w=20przy=20zatwierdzaniu=20zmian=20na=20pliku.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- lib/hg.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/hg.py b/lib/hg.py index a2702f6c..d8b4679a 100644 --- a/lib/hg.py +++ b/lib/hg.py @@ -75,7 +75,7 @@ class Repository(object): # will commit all keys pending_files = self._pending_files else: - if key not in self._pending_files: + if keys not in self._pending_files: # key isn't changed return None else: @@ -97,6 +97,9 @@ class Repository(object): self.repo.forget(files_to_remove) # ---- hg commit if files_to_commit: + for i, f in enumerate(files_to_commit): + if isinstance(f, unicode): + files_to_commit[i] = f.encode('utf-8') matcher = match.match(self.repo.root, self.repo.root, files_to_commit, default='path') rev = self.repo.commit(message, user=user, match=matcher) commited = True -- 2.20.1