Mercurial > hg
comparison hgext/mq.py @ 35843:512113eb9d26
mq: open status file et al in bytes mode
Differential Revision: https://phab.mercurial-scm.org/D1902
author | Augie Fackler <augie@google.com> |
---|---|
date | Wed, 17 Jan 2018 22:05:02 -0500 |
parents | 9bce28609a95 |
children | 522f868680ca |
comparison
equal
deleted
inserted
replaced
35842:9bce28609a95 | 35843:512113eb9d26 |
---|---|
693 write(_('skipping %s - no matching guards\n') % | 693 write(_('skipping %s - no matching guards\n') % |
694 self.series[idx]) | 694 self.series[idx]) |
695 | 695 |
696 def savedirty(self): | 696 def savedirty(self): |
697 def writelist(items, path): | 697 def writelist(items, path): |
698 fp = self.opener(path, 'w') | 698 fp = self.opener(path, 'wb') |
699 for i in items: | 699 for i in items: |
700 fp.write("%s\n" % i) | 700 fp.write("%s\n" % i) |
701 fp.close() | 701 fp.close() |
702 if self.applieddirty: | 702 if self.applieddirty: |
703 writelist(map(str, self.applied), self.statuspath) | 703 writelist(map(str, self.applied), self.statuspath) |