Package: hgsvn
Version: 0.1.8-1
Severity: normal
Tags: patch

Dear Maintainer,

     When attempting to import a remote svn repo, when not using gnome's
     keyring management , there is some debugging information printed
     to stderr. It does not affect the program operation. hgimportsvn
     fails with:

Passwort für »user«: 
Traceback (most recent call last):
          File "/usr/bin/hgimportsvn", line 9, in <module>
              load_entry_point('hgsvn==0.1.8', 'console_scripts', 
'hgimportsvn')()
            File "/usr/lib/pymodules/python2.7/hgsvn/run/hgimportsvn.py", line 
67, in main
              svn_info = get_svn_info(target_svn_url, options.svn_rev)
            File "/usr/lib/pymodules/python2.7/hgsvn/svnclient.py", line 152, 
in get_svn_info
              fail_if_stderr=True)
            File "/usr/lib/pymodules/python2.7/hgsvn/common.py", line 236, in 
run_svn
              args=args, bulk_args=bulk_args, fail_if_stderr=fail_if_stderr)
            File "/usr/lib/pymodules/python2.7/hgsvn/common.py", line 169, in 
run_command
              return _run_raw_command(cmd, map(_transform_arg, args), 
fail_if_stderr)
            File "/usr/lib/pymodules/python2.7/hgsvn/common.py", line 142, in 
_run_raw_command
              % (pipe.returncode, cmd_string, err))
          hgsvn.errors.ExternalCommandFailed: External program failed (return 
code 0): svn 'info' '--xml' '
WARNING: gnome-keyring:: couldn't connect to: 
/home/user/.cache/keyring-d9y87B/pkcs11: Datei oder Verzeichnis nicht gefunden

    The return code is 0, indicating success. Please find with this report a 
patch that converts the call to fail_if_stderr to False. With the change, and 
occassionaly tapping enter (for unclear reasons), I was able to import with 
gnome-keyring disabled. 
    
    However, when attempting to subsequently use hgpullsvn, I couldnt get it to 
work without the keyring enabled.

-- System Information:
Debian Release: 7.0
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.2.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages hgsvn depends on:
ii  mercurial             2.2.2-3
ii  python                2.7.3-4
ii  python-pkg-resources  0.6.24-1
ii  python-support        1.0.15
ii  subversion            1.6.17dfsg-4+deb7u2

hgsvn recommends no packages.

hgsvn suggests no packages.

-- no debconf information
--- svnclient.py.orig	2013-07-12 21:07:13.000000000 +0200
+++ svnclient.py	2013-07-12 21:07:05.000000000 +0200
@@ -149,7 +149,7 @@
     else:
         args = []
     xml_string = run_svn(svn_info_args + args + [svn_url_or_wc],
-        fail_if_stderr=True)
+        fail_if_stderr=False)
     return parse_svn_info_xml(xml_string)
 
 def svn_checkout(svn_url, checkout_dir, rev_number=None):

Reply via email to