~dricottone/huttese-apk

ref: 7e360894c4cbb7fa1e9173cd7597ef73367c6b61 huttese-apk/sr.ht/mercurial/muslhotfix.patch -rw-r--r-- 482 bytes
7e360894 — Ludovic Chabant Add musl libc hotfix to mercurial, bump mercurial to 5.0 5 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
diff -r 07e479ef7c96 mercurial/obsolete.py
--- a/mercurial/obsolete.py	Thu Apr 25 19:17:02 2019 +0200
+++ b/mercurial/obsolete.py	Thu Jul 04 05:19:36 2019 +0000
@@ -635,6 +635,8 @@
         if new:
             f = self.svfs('obsstore', 'ab')
             try:
+                import os
+                f.seek(0, os.SEEK_END)
                 offset = f.tell()
                 transaction.add('obsstore', offset)
                 # offset == 0: new file - add the version header