Your message dated Tue, 27 Sep 2016 04:20:58 +0000
with message-id <e1bojt4-0001un...@franck.debian.org>
and subject line Bug#834908: fixed in git-remote-hg 0.3-2
has caused the Debian Bug report #834908,
regarding git-remote-hg: 'module' object has no attribute 'write'
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
834908: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=834908
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: git-remote-hg
Version: 0.3-1
Severity: grave
Tags: patch
Justification: renders package unusable

When I pull from a mercurial origin I get the following error:

$ GIT_TRACE=1 git pull
16:56:41.648900 git.c:350               trace: built-in: git 'pull'
16:56:41.649394 run-command.c:336       trace: run_command: 'fetch' 
'--update-head-ok'
16:56:41.649575 exec_cmd.c:120          trace: exec: 'git' 'fetch' 
'--update-head-ok'
16:56:41.650293 git.c:350               trace: built-in: git 'fetch' 
'--update-head-ok'
16:56:41.650947 run-command.c:336       trace: run_command: 'git-remote-hg' 
'origin' 'ssh://hg@XXXXXXXXXXXXXXXXXX
16:56:41.722759 git.c:350               trace: built-in: git 'config' '--get' 
'remote-hg.hg-git-compat'
16:56:41.724205 git.c:350               trace: built-in: git 'config' '--get' 
'remote-hg.track-branches'
16:56:41.728526 git.c:350               trace: built-in: git 'config' '--get' 
'remote-hg.insecure'
remote: X11 forwarding request failed on channel 0
searching for changes
no changes found
ERROR: 'module' object has no attribute 'write'


The problem is related to the new version of mercurial and it seems to be 
solved by this patch:
https://github.com/felipec/git-remote-hg/commit/822c6e4b03d9e66df8261f323caded716e8d8b8d?diff=unified


-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 
'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386, armhf

Kernel: Linux 4.6.4 (SMP w/8 CPU cores; PREEMPT)
Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages git-remote-hg depends on:
ii  git        1:2.9.3-1
ii  mercurial  3.9-1
ii  python     2.7.11-2

git-remote-hg recommends no packages.

Versions of packages git-remote-hg suggests:
ii  git-doc  1:2.9.3-1

-- no debconf information
diff --git a/git-remote-hg b/git-remote-hg
index 87dc8f3..1749d43 100755
--- a/git-remote-hg
+++ b/git-remote-hg
@@ -373,10 +373,23 @@ def updatebookmarks(repo, peer):
     for k, v in remotemarks.iteritems():
         localmarks[k] = hgbin(v)
 
-    if hasattr(localmarks, 'write'):
-        localmarks.write()
+    if check_version(3, 6):
+        lock = tr = None
+        try:
+            lock = repo.lock()
+            tr = repo.transaction('bookmark')
+            localmarks.recordchange(tr)
+            tr.close()
+        finally:
+            if tr is not None:
+                tr.release()
+            if lock is not None:
+                lock.release()
     else:
-        bookmarks.write(repo)
+        if hasattr(localmarks, 'write'):
+            localmarks.write()
+        else:
+            bookmarks.write(repo)
 
 def get_repo(url, alias):
     global peer

--- End Message ---
--- Begin Message ---
Source: git-remote-hg
Source-Version: 0.3-2

We believe that the bug you reported is fixed in the latest version of
git-remote-hg, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 834...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Jonathan McCrohan <jmccro...@gmail.com> (supplier of updated git-remote-hg 
package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Sun, 25 Sep 2016 00:14:32 +0100
Source: git-remote-hg
Binary: git-remote-hg
Architecture: source
Version: 0.3-2
Distribution: unstable
Urgency: medium
Maintainer: Jonathan McCrohan <jmccro...@gmail.com>
Changed-By: Jonathan McCrohan <jmccro...@gmail.com>
Description:
 git-remote-hg - bidirectional bridge between Git and Mercurial
Closes: 833907 834908
Changes:
 git-remote-hg (0.3-2) unstable; urgency=medium
 .
   * Backport two upstream patches from felipec's repo which add support for
     Mercurial 3.6 and consequently fix the FTBFS;
     improve-hg-git-compatibility.patch and
     avoid-deprecated-bookmarks-write.patch
     (Closes: #833907, #834908)
   * Update Standards Version to 3.9.8
     - No changes required
   * Add DEP-8 (autopkgtest) support for upstream test suite
Checksums-Sha1:
 a07b27018225a7139deb644d67e61cd487cafe74 1990 git-remote-hg_0.3-2.dsc
 551e6b73990042a3f0fbcceec50f2cd1dd91cb36 3568 git-remote-hg_0.3-2.debian.tar.xz
Checksums-Sha256:
 5760f1251591e87ac29d036eaee51a1926d3ed73ee6bd03f137ef60d55c361d9 1990 
git-remote-hg_0.3-2.dsc
 b3ef638a6a244d552e4c0bceaab95644160ab7302bdbfd8445cf0b72bd6e6842 3568 
git-remote-hg_0.3-2.debian.tar.xz
Files:
 8c7f16669e997ec14badcfbbfcd5c2dc 1990 vcs extra git-remote-hg_0.3-2.dsc
 dc43b0076e98c1d418f9fa4067c058ea 3568 vcs extra 
git-remote-hg_0.3-2.debian.tar.xz

-----BEGIN PGP SIGNATURE-----

iQIcBAEBCAAGBQJX6dX2AAoJEDEWul6f+mmj1vAP/1BUrNh5NxV/1MAcOdv4dAbA
EU+gVnEokveSDsFDQVOM7uyhUqf/NHygBU6vV0Rp0uhXFZQXxmTAFMNakM6ZC45B
5lwp+f7SWACmZaoR/4SeqOgnN/nkw4TD7hty1C8N/zhAA9u17Y0YXDbw0UfHEVNJ
CPTv3Xtu1dSt67SjfEjwxqjLsiSRLl3uSgNy+YNWJ7veOoP4yBUDvkX/4547GKO5
kMxqFrFDjLQPMpGf0vjddofucD7hJ/PvGuMAKcA3fm712eA/EPHlSAtJGOgr1XwI
uuzLnobP8cw5BAsIsre73Vm6XaUrk47osXhGcCySoLQ/iXxseuoNo/v3C+Z6Eby1
K9NCOQ9fmuuCH66ckjFnWu6ecjG98nvhGUyI/BrHiAds+kkN3yWgsrfqDHNJHIsK
9WeswqJIacNdmIKjFkxcDHQBJjOfLPBCxaa3/ntxHTEuQJ6x0hV1tVSLpqsahYRC
BmQ2v+othgUa6KQrf1t17+VLxz7BR9Ffxtb3Ys+TNWMwiPKN7zD0eQBM15mwkhob
QB9WBH/Q2sNiRSzXMRL7DCMObTSqdo1p2EMfo6O8qvYT8Zhm5AP6VeL6JKEnfYE8
5rvN1DJcuUBYYr7AmyV8HTVNiXnsJUJtnfBjeaGJRlSvp5L1P5myAEhmPh1rJS5E
nDs7M+kRiH/7PxTVr40q
=Nt/u
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to