fnp
/
redakcja.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3d36d4b
)
Enkodowanie nazw plików do UTF-8 przed przekazaniem ich do localrepo.commit. Powinno...
author
zuber
<marek@stepniowski.com>
Thu, 13 Aug 2009 13:27:01 +0000
(15:27 +0200)
committer
zuber
<marek@stepniowski.com>
Thu, 13 Aug 2009 13:27:01 +0000
(15:27 +0200)
lib/hg.py
patch
|
blob
|
history
diff --git
a/lib/hg.py
b/lib/hg.py
index
a2702f6
..
d8b4679
100644
(file)
--- 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:
# will commit all keys
pending_files = self._pending_files
else:
- if key not in self._pending_files:
+ if key
s
not in self._pending_files:
# key isn't changed
return None
else:
# 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:
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
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