hgpullsvn dies with exception when started outside of repository
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
hgsvn (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
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/
load_
File "/var/lib/
svn_info = get_svn_info('.')
File "/var/lib/
fail_
File "/var/lib/
args=args, bulk_args=
File "/var/lib/
return _run_raw_
File "/var/lib/
% (pipe.returncode, cmd_string, err))
hgsvn.errors.
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://
Other problem I noticed is that I think it is possible to run two hgpullsvn commands in the valid directory in the same time. I think that some lock should be checked to prevent data corruption.