Bug 904849

Summary: [abrt] hgsvn-0.1.9-2.fc18: hgimportsvn.py:227:main:OSError: [Errno 2] No such file or directory
Product: [Fedora] Fedora Reporter: Sjoerd Mullender <sjoerd>
Component: hgsvnAssignee: Terje Røsten <terje.rosten>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 18CC: terje.rosten
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:c6ce8b16cacdf9525e2fa19d6214f7b6269fe0ec
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-03-07 23:57:06 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: backtrace
none
File: core_backtrace
none
File: environ none

Description Sjoerd Mullender 2013-01-27 21:03:19 UTC
Description of problem:
hgimportsvn https://simpleid.svn.sourceforge.net/svnroot/simpleid/trunk

Version-Release number of selected component:
hgsvn-0.1.9-2.fc18

Additional info:
cmdline:        /usr/bin/python /usr/bin/hgimportsvn https://simpleid.svn.sourceforge.net/svnroot/simpleid/trunk
executable:     /usr/bin/hgimportsvn
kernel:         3.7.4-204.fc18.x86_64
uid:            1000

Truncated backtrace:
hgimportsvn.py:227:main:OSError: [Errno 2] No such file or directory

Traceback (most recent call last):
  File "/usr/bin/hgimportsvn", line 9, in <module>
    load_entry_point('hgsvn==0.1.9', 'console_scripts', 'hgimportsvn')()
  File "/usr/lib/python2.7/site-packages/hgsvn/run/hgimportsvn.py", line 227, in main
    os.rename(os.path.join(checkout_dir, d, svn_private_dir), os.path.join(d, svn_private_dir))
OSError: [Errno 2] No such file or directory

Local variables in innermost frame:
parser: <optparse.OptionParser instance at 0x27183f8>
svn_rev: 2
actual_svn_url: 'https://simpleid.svn.sourceforge.net/svnroot/simpleid/trunk'
local_repo: 'trunk'
svn_manifest: ['cache', 'identities', 'identities/example.identity.dist', 'www', 'www/cache.inc', 'www/common.inc', 'www/config.inc.dist', 'www/html', 'www/html/simpleid.css', 'www/html/template.xtpl', 'www/html/user.png', 'www/html/world.png', 'www/index.php', 'www/lib', 'www/lib/xtemplate.class.php', 'www/lib/xtemplate.license.txt', 'www/openid.inc', 'www/sreg.inc', 'www/user.inc']
svn_branch: 'trunk'
svn_copyfrom_revision: None
p: {'action': 'A', 'path': '/trunk', 'copyfrom_path': None, 'copyfrom_revision': None}
svn_copyfrom_path: None
svn_dirs: ['cache', 'identities', 'www', 'www/html', 'www/lib']
checkout_dir: './tmpZbWhKv'
usage: '1. %prog [-r SVN rev] [-p SVN peg rev] <SVN URL> [local checkout]\n       2. %prog --local-only <local checkout>'
svn_files: ['www/openid.inc', 'www/config.inc.dist', 'www/html/world.png', 'www/index.php', 'www/cache.inc', 'www/user.inc', 'www/lib/xtemplate.class.php', 'www/html/template.xtpl', 'www/html/user.png', 'www/html/simpleid.css', 'www/lib/xtemplate.license.txt', 'identities/example.identity.dist', 'www/sreg.inc', 'www/common.inc']
svn_greatest_rev: 586
svn_info: {'last_changed_date': 1346509317, 'last_changed_rev': 586, 'last_changed_author': 'kmo', 'url': 'https://simpleid.svn.sourceforge.net/svnroot/simpleid/trunk', 'repos_url': 'https://simpleid.svn.sourceforge.net/svnroot/simpleid', 'revision': 586}
args: []
svn_start_log: {'date': 1187088216, 'message': 'Initial import.', 'author': 'kmo', 'changed_paths': [{'action': 'A', 'path': '/trunk/cache', 'copyfrom_path': '/cache', 'copyfrom_revision': 1}, {'action': 'A', 'path': '/trunk/www', 'copyfrom_path': '/www', 'copyfrom_revision': 1}, {'action': 'D', 'path': '/identities', 'copyfrom_path': None, 'copyfrom_revision': None}, {'action': 'M', 'path': '/trunk/www/cache.inc', 'copyfrom_path': None, 'copyfrom_revision': None}, {'action': 'D', 'path': '/cache', 'copyfrom_path': None, 'copyfrom_revision': None}, {'action': 'A', 'path': '/trunk', 'copyfrom_path': None, 'copyfrom_revision': None}, {'action': 'A', 'path': '/trunk/identities', 'copyfrom_path': '/identities', 'copyfrom_revision': 1}, {'action': 'D', 'path': '/www', 'copyfrom_path': None, 'copyfrom_revision': None}], 'revision': 2}
d: 'cache'
f: 'www/common.inc'
target_svn_url: 'https://simpleid.svn.sourceforge.net/svnroot/simpleid/trunk'
svn_path: '/trunk'
repos_url: 'https://simpleid.svn.sourceforge.net/svnroot/simpleid'
options: <Values at 0x27265a8: {'hgignore': True, 'svn_branch': None, 'show_version': None, 'local_only': False, 'verbosity': 10, 'svn_rev': None, 'show_help': None, 'help2man': None, 'svn_peg': None}>

Comment 1 Sjoerd Mullender 2013-01-27 21:03:23 UTC
Created attachment 688613 [details]
File: backtrace

Comment 2 Sjoerd Mullender 2013-01-27 21:03:25 UTC
Created attachment 688614 [details]
File: core_backtrace

Comment 3 Sjoerd Mullender 2013-01-27 21:03:27 UTC
Created attachment 688615 [details]
File: environ

Comment 4 Terje Røsten 2013-01-27 21:08:52 UTC
Thanks for you report.

What did you do to create the backtrace?

Comment 5 Sjoerd Mullender 2013-01-27 21:27:40 UTC
I didn't do anything special.  I executed the hgimportsvn command per my report, and abrt gave me the stack trace.

Comment 6 Sjoerd Mullender 2013-01-27 21:29:23 UTC
I just tried it again.  In the terminal window I also saw the message:
SVN branch isn't a copy
This was followed by the stack trace which abrt also reported.

Comment 7 Terje Røsten 2013-01-28 08:25:37 UTC
Ok, thanks for your input so far.

Comment 8 Terje Røsten 2013-01-28 16:42:35 UTC
Not able to reproduce, do you have any files/dirs in current working dir?

Any related .hg  dires or files around?

Comment 9 Terje Røsten 2013-02-23 10:01:48 UTC
ping?

Comment 10 Sjoerd Mullender 2013-02-23 14:33:14 UTC
I tink the reason for the crash is the fact that the svn repository I was trying to read doesn't exist anymore.  It probably also didn't exist when I first tried it.
The crash still happens on Fedora 18 with hgsvn-0.1.9-2.fc18.noarch.

The directory I tried this in was empty.

Comment 11 Terje Røsten 2013-02-23 14:57:33 UTC
Seems like I tried the command on Fedora 16 which in fact works :-)

Upgrade of subversion 1.7 from 1.6 or newer hg (1.9.3 > 2.4.1) might be the cause. Need to research more.

Comment 12 Fedora Update System 2013-02-24 11:58:29 UTC
hgsvn-0.1.9-4.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/hgsvn-0.1.9-4.fc17

Comment 13 Fedora Update System 2013-02-24 11:58:44 UTC
hgsvn-0.1.9-4.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/hgsvn-0.1.9-4.fc18

Comment 14 Fedora Update System 2013-02-26 02:48:27 UTC
Package hgsvn-0.1.9-4.fc18:
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing hgsvn-0.1.9-4.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-3045/hgsvn-0.1.9-4.fc18
then log in and leave karma (feedback).

Comment 15 Fedora Update System 2013-03-07 23:57:08 UTC
hgsvn-0.1.9-4.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 16 Fedora Update System 2013-03-07 23:58:29 UTC
hgsvn-0.1.9-4.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.