Public bug reported:

Binary package hint: hgsvn

Ubuntu 7.10, i386

$ hgpullsvn --version
hgsvn 0.1.3

$ hgpullsvn
* svn 'info' '--xml' '.'
Traceback (most recent call last):
  File "/usr/bin/hgpullsvn", line 8, in <module>
    load_entry_point('hgsvn==0.1.3', 'console_scripts', 'hgpullsvn')()
  File "/var/lib/python-support/python2.5/hgsvn/run/hgpullsvn.py", line 176, in 
main
    svn_info = get_svn_info('.')
  File "/var/lib/python-support/python2.5/hgsvn/svnclient.py", line 119, in 
get_svn_info
    fail_if_stderr=True)
  File "/var/lib/python-support/python2.5/hgsvn/common.py", line 148, in run_svn
    args=args, bulk_args=bulk_args, fail_if_stderr=fail_if_stderr)
  File "/var/lib/python-support/python2.5/hgsvn/common.py", line 93, in 
run_command
    return _run_raw_command(cmd, map(_transform_arg, args), fail_if_stderr)
  File "/var/lib/python-support/python2.5/hgsvn/common.py", line 67, in 
_run_raw_command
    % (pipe.returncode, cmd_string, err))
hgsvn.errors.ExternalCommandFailed: External program failed (return code 1): 
svn 'info' '--xml' '.'
svn: '.' is not a working copy

This complicated error output is written when hgpullsvn is run from the
directory that is not Mercurial repository. The same error when
hgpullsvn is started in pure Mercurial directory (not created with
hgpullsvn command).

>From my point of view, some check has to be added to hgpullsvn, to don't
crash in this way.

BTW, fast introduction How to convert Subversion repository to Mercurial
repository is here: http://digitalspaghetti.me.uk/category/svn

** Affects: hgsvn (Ubuntu)
     Importance: Undecided
         Status: New

-- 
hgpullsvn dies with exceptation when started out of repository
https://bugs.launchpad.net/bugs/174232
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to