Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#21656 - [hgsvn] import fails

Attached to Project: Community Packages
Opened by mark (mmm) - Tuesday, 09 November 2010, 20:06 GMT
Last edited by Lukas Fleischer (lfleischer) - Wednesday, 01 December 2010, 23:33 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Aaron Bull Schaefer (elasticdog)
Architecture i686
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
installed hgsvn and tried to run but recieved an error:

$hgimportsvn svn://anonsvn.kde.org/home/kde/trunk/extragear/graphics/kipi-plugins/
SVN branch was copied from '/trunk/extragear/libs/kipi-plugins' at rev 816153
Traceback (most recent call last):
File "/usr/bin/hgimportsvn", line 8, in <module>
load_entry_point('hgsvn==0.1.8', 'console_scripts', 'hgimportsvn')()
File "/usr/lib/python2.7/site-packages/hgsvn/run/hgimportsvn.py", line 143, in main
run_hg(["init"])
File "/usr/lib/python2.7/site-packages/hgsvn/common.py", line 224, in run_hg
bulk_args=bulk_args)
File "/usr/lib/python2.7/site-packages/hgsvn/common.py", line 169, in run_command
return _run_raw_command(cmd, map(_transform_arg, args), fail_if_stderr)
File "/usr/lib/python2.7/site-packages/hgsvn/common.py", line 137, in _run_raw_command
% (cmd_string, "".join(traceback.format_exception_only(etype, value))))
hgsvn.errors.ExternalCommandFailed: Failed running external program: hg '--encoding' 'utf-8' 'init'
Error: OSError: [Errno 2] No such file or directory

Additional info:
* package version(s)
latest from community repo
* config and/or log files etc.


Steps to reproduce:
$hgimportsvn svn://anonsvn.kde.org/home/kde/trunk/extragear/graphics/kipi-plugins/
This task depends upon

Closed by  Lukas Fleischer (lfleischer)
Wednesday, 01 December 2010, 23:33 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed in 0.1.8-3.
Comment by Aaron Bull Schaefer (elasticdog) - Wednesday, 10 November 2010, 00:02 GMT
I'm not able to reproduce this on my machine...can you run it with the --debug flag to get more detailed output? Also make sure that you have 'python2' installed and are using the hgsvn-0.1.8-2 package that was created for the python rebuild.
Comment by mark (mmm) - Wednesday, 10 November 2010, 09:03 GMT
Hello,
I do have the python2 and new hgsvn :
yaourt -Qs hgsvn
community/hgsvn 0.1.8-2 [0.46 M]
A set of scripts to work locally on Subversion checkouts using Mercurial
[marek@beruska cc]$ yaourt -Qs python2
extra/python2 2.7-3 [66.56 M]
A high-level scripting language


This is my output w/ --debug:

$ hgimportsvn --debug -v svn://anonsvn.kde.org/home/kde/trunk/extragear/graphics/kipi-plugins/
SVN branch was copied from '/trunk/extragear/libs/kipi-plugins' at rev 816153
Traceback (most recent call last):
File "/usr/bin/hgimportsvn", line 8, in <module>
load_entry_point('hgsvn==0.1.8', 'console_scripts', 'hgimportsvn')()
File "/usr/lib/python2.7/site-packages/hgsvn/run/hgimportsvn.py", line 143, in main
run_hg(["init"])
File "/usr/lib/python2.7/site-packages/hgsvn/common.py", line 224, in run_hg
bulk_args=bulk_args)
File "/usr/lib/python2.7/site-packages/hgsvn/common.py", line 169, in run_command
return _run_raw_command(cmd, map(_transform_arg, args), fail_if_stderr)
File "/usr/lib/python2.7/site-packages/hgsvn/common.py", line 137, in _run_raw_command
% (cmd_string, "".join(traceback.format_exception_only(etype, value))))
hgsvn.errors.ExternalCommandFailed: Failed running external program: hg '--encoding' 'utf-8' 'init'
Error: OSError: [Errno 2] No such file or directory


I do have some problems with svn on this network, but this seems more like program crash.

Thank you, Marek
Comment by Lukas Fleischer (lfleischer) - Wednesday, 10 November 2010, 13:57 GMT
mmm: Just to be sure... Is hg installed?

elasticdog: Shouldn't "hg" be a dependency?
Comment by mark (mmm) - Wednesday, 10 November 2010, 14:52 GMT
Good point Lukas, yes, I'm stupid enough, hg is was not installed :P Actually, I don't know what package provides that functionality in Arch - there's no just hg package.

Yep, I think it should be a dependency for ppl like me, I have no idea about hg, just needed something other than svn to try to get a svn repo.

So thanks for asking right questions ;)
Comment by Lukas Fleischer (lfleischer) - Wednesday, 10 November 2010, 14:59 GMT
mmm: Ye, sorry it's the "mercurial" package. Just `pacman -S mercurial`.

elasticdog: So maybe add "mercurial" (and maybe "svn" as well) as deps?
Comment by mark (mmm) - Wednesday, 10 November 2010, 15:43 GMT
after having mercurial installed, hgsvn seems to work ok. But anyway doesn't behave very nicely, on ctrl^c it spills out:
$ hgimportsvn svn://anonsvn.kde.org/home/kde/trunk/extragear/graphics/kipi-plugins/
SVN branch was copied from '/trunk/extragear/libs/kipi-plugins' at rev 816153
^CTraceback (most recent call last):
File "/usr/bin/hgimportsvn", line 8, in <module>
load_entry_point('hgsvn==0.1.8', 'console_scripts', 'hgimportsvn')()
File "/usr/lib/python2.7/site-packages/hgsvn/run/hgimportsvn.py", line 184, in main
svn_checkout(target_svn_url, checkout_dir, svn_rev)
File "/usr/lib/python2.7/site-packages/hgsvn/svnclient.py", line 163, in svn_checkout
return run_svn(svn_checkout_args + args)
File "/usr/lib/python2.7/site-packages/hgsvn/common.py", line 236, in run_svn
args=args, bulk_args=bulk_args, fail_if_stderr=fail_if_stderr)
File "/usr/lib/python2.7/site-packages/hgsvn/common.py", line 169, in run_command
return _run_raw_command(cmd, map(_transform_arg, args), fail_if_stderr)
File "/usr/lib/python2.7/site-packages/hgsvn/common.py", line 138, in _run_raw_command
out, err = pipe.communicate()
File "/usr/lib/python2.7/subprocess.py", line 740, in communicate
return self._communicate(input)
File "/usr/lib/python2.7/subprocess.py", line 1256, in _communicate
stdout, stderr = self._communicate_with_poll(input)
File "/usr/lib/python2.7/subprocess.py", line 1310, in _communicate_with_poll
ready = poller.poll()
KeyboardInterrupt


I guess this is correct, but doesn't look very clean and lean.
Comment by Lukas Fleischer (lfleischer) - Wednesday, 10 November 2010, 15:45 GMT
This is correct. If you don't like it, report it upstream :p

Loading...