Package Details: mercurial-python3 5.4-1

Git Clone URL: https://aur.archlinux.org/mercurial-python3.git (read-only, click to copy)
Package Base: mercurial-python3
Description: A scalable distributed SCM tool - built with Python 3
Upstream URL: https://www.mercurial-scm.org/
Licenses: GPL
Conflicts: mercurial
Provides: mercurial=5.4
Submitter: chrisjbillington
Maintainer: chrisjbillington
Last Packager: chrisjbillington
Votes: 10
Popularity: 6.07
First Submitted: 2020-02-08 19:50
Last Updated: 2020-05-16 18:41

Dependencies (2)

Required by (412)

Sources (2)

Latest Comments

chrisjbillington commented on 2020-05-12 19:31

Whilst mercurial 5.4 is out, I am holding off updating this package until tortoisehg is updated to the corresponding version.

chrisjbillington commented on 2020-02-25 21:59

Ah, actually the patch rendered fine in the notification email for your comment, so I have it. This works for me (assuming you name the patch url.patch):

...
source=(https://www.mercurial-scm.org/release/${_pkgname}-${pkgver}.tar.gz
        mercurial.profile
        url.patch)
sha256sums=('e57ff61d6b67695149dd451922b40aa455ab02e01711806a131a1e95c544f9b9'
            '87427151713e689cd87dc50d50c048e0e58285815e4eb61962b50583532cbde5'
            '9183c7320bc6174688f8c13dc9bf16c464ba5d3696bf455732f09d50cc21d5bc')

prepare() {
  cd $_pkgname-$pkgver
  patch -p1 < "${srcdir}/url.patch"
}
...

chrisjbillington commented on 2020-02-25 21:34

@schnedan, can you put the patch on pastebin? It doesn't render properly here so it lacks whitespace and so is malformed. (if it lacked the whitespace originally, then that could be the problem!)

schnedan commented on 2020-02-25 21:17

Hello,

from a mercurial developer I received a patch to test, concerning a bug in a enviroment I am working in.
But I failed to integrate the patch with the PKGBUILD (following the discriptions of https://wiki.archlinux.org/index.php/Patching_packages). I get as far as to receive a message "patch failed". I also patched the sources manualy, so basicly it works. I think its cause by some path issues or such.

Can you please provide some help and tell me how to edit PKGBUILD that it works? Perhaps even the patch needs some editing... just guessing.

the patch is:

diff --git a/mercurial/url.py b/mercurial/url.py
--- a/mercurial/url.py
+++ b/mercurial/url.py
@@ -226,7 +226,7 @@ def _generic_start_transaction(handler,
def _generic_proxytunnel(self):
proxyheaders = dict(
[
- (x, self.headers[x])
+ (pycompat.bytestr(x), pycompat.bytestr(self.headers[x]))
for x in self.headers
if x.lower().startswith('proxy-')
]