Submitter | Katsunori FUJIWARA |
---|---|
Date | Nov. 19, 2014, 9:41 a.m. |
Message ID | <06bcf5cdf1e38238fa02.1416390114@juju> |
Download | mbox | patch |
Permalink | /patch/6796/ |
State | Accepted |
Commit | 1df6519eb3abe34990073935534553b181d7f06c |
Headers | show |
Comments
Patch
diff --git a/mercurial/scmutil.py b/mercurial/scmutil.py --- a/mercurial/scmutil.py +++ b/mercurial/scmutil.py @@ -229,6 +229,13 @@ class abstractvfs(object): finally: fp.close() + def writelines(self, path, data, mode='wb', notindexed=False): + fp = self(path, mode=mode, notindexed=notindexed) + try: + return fp.writelines(data) + finally: + fp.close() + def append(self, path, data): fp = self(path, 'ab') try: