On Tue, Nov 18, 2008 at 11:46 PM, Todd Larsen <[EMAIL PROTECTED]> wrote:
> On Tue, Nov 18, 2008 at 3:49 PM, Bastian Doetsch <[EMAIL PROTECTED]> wrote:
>> Am Dienstag, den 18.11.2008, 14:22 -0600 schrieb Todd Larsen:
>>
>> I have been trying to use the latest beta plug-in with hgsubversion.
>> I have a working hgsubversion setup (using the latest hg and
>> hgsubversion code) that I have used to 'hg svnclone' the svn repo of a
>> Google Code project.  I am able to use the 'hg svn' command-line to
>> manipulate this clone.
>>
>> When I select the the "use svn extension" checkbox and supply an
>> https: URL to an svn repo on Google Code, the plug-in pops up an error
>> dialog saying that the URL is not an hg repository.  It shouldn't be
>> an hg repository, since the 'hg svn' extension should be expecting an
>> svn repo, right?
>>
>> I think I have captured the relevant stack trace from the Eclipse log below.
>>
>> Any ideas?
>>
>> Yep. Incoming doesn't work with hgsubversion. A few changesets after the
>> beta, I've fixed it by not calling hg incoming for svn pulls. So that's the
>> reason for your popup.
>>
>> Your problem with pull seems to be related to authentication - have you
>> supplied credentials for pulling? If you did, it seems like hgsubversion
>> doesn't accept URIs like svn://user:[EMAIL PROTECTED]/svn . Your console
>> output might be interesting, but make sure, you don't paste your password.
>> If it is in the call to hg, please replace it with something else.
>
> The repository is not an svn: protocol repository.  All Google Code
> svn repos are https:.  When I do an 'hg svn pull' on the command line,
> it interactively asks me for my user name (which is
> [EMAIL PROTECTED], the Google Account I use to access the Google Code
> project) and a password (which is the "disposable" one that Google
> Code provides per-user, per-project so that svn can cache auth
> credentials without exposing the real Google Account password).
>
> I am pretty sure that 'hg svn pull' using the https: svn protocol does
> not support https://user:password@<project>.googlecode.com/svn URLs.
> It does not fail when presented with such a URL, but it does the
> interactive auth prompting anyway.
>
> Thanks.
> -Todd
>
>> Thanks for trying - I'll try to reproduce the authentication stuff for
>> myself, but please give us your input as well - I don't have a SSL-SVN repo
>> available to test with.

By the way, the same type of
https://user:[EMAIL PROTECTED]/svn works just fine
(and non-interactively) for 'svn checkout'.  So, this might be an
issue with hgsubversion, which is using the SWIG'd Python bindings for
svn (as opposed to calling the svn command line).  I have sent a few
authentication-related questions to the hgsubversion author.  He is a
friend of mine and was a former intern on my team at Google a couple
of summers ago.  I will let you know what he says.

As an experiment, I used a different Google Account (a GMail account
that does not require @google.com on the end), and the behavior is
strange:

g$ hg svn pull https://todd.larsen:[EMAIL PROTECTED]/svn
Auth realm: <https://soc.googlecode.com:443> Google Code Subversion Repository
Password for tlarsen:
Auth realm: <https://soc.googlecode.com:443> Google Code Subversion Repository
Username: todd.larsen
Password for todd.larsen:

The "Password for tlarsen:" part is what is strange.  That is the
local user on the workstation, so hgsubversion is not caching
credentials.  I will pass this along to the hgsubversion author as
well.

Thanks.
-Todd


>>
>> !ENTRY com.vectrace.MercurialEclipse 4 0 2008-11-18 13:59:21.832
>> !MESSAGE Process error, return code: 255, message: using
>> https://soc.googlecode.com/svn
>> http auth: user [EMAIL PROTECTED], password not set
>> sending between command
>> abort: http authorization required
>>
>> !STACK 1
>> com.vectrace.MercurialEclipse.exception.HgException: Process error,
>> return code: 255, message: using https://soc.googlecode.com/svn
>> http auth: user [EMAIL PROTECTED], password not set
>> sending between command
>> abort: http authorization required
>>
>>       at
>> com.vectrace.MercurialEclipse.commands.AbstractShellCommand.executeToBytes(AbstractShellCommand.java:178)
>>       at
>> com.vectrace.MercurialEclipse.commands.AbstractShellCommand.executeToBytes(AbstractShellCommand.java:125)
>>       at
>> com.vectrace.MercurialEclipse.commands.AbstractShellCommand.executeToBytes(AbstractShellCommand.java:121)
>>       at
>> com.vectrace.MercurialEclipse.commands.AbstractShellCommand.executeToString(AbstractShellCommand.java:217)
>>       at
>> com.vectrace.MercurialEclipse.commands.HgIncomingClient.getHgIncoming(HgIncomingClient.java:64)
>>       at
>> com.vectrace.MercurialEclipse.team.cache.AbstractCache.addResourcesToCache(AbstractCache.java:77)
>>       at
>> com.vectrace.MercurialEclipse.team.cache.IncomingChangesetCache.refreshIncomingChangeSets(IncomingChangesetCache.java:277)
>>       at
>> com.vectrace.MercurialEclipse.team.cache.IncomingChangesetCache.getIncomingChangeSets(IncomingChangesetCache.java:136)
>>       at
>> com.vectrace.MercurialEclipse.wizards.IncomingPage$GetIncomingOperation.getIncomingInternal(IncomingPage.java:117)
>>       at
>> com.vectrace.MercurialEclipse.wizards.IncomingPage$GetIncomingOperation.run(IncomingPage.java:108)
>>       at
>> org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
>> !SUBENTRY 1 com.vectrace.MercurialEclipse 4 -100 2008-11-18 13:59:21.833
>> !MESSAGE Process error, return code: 255, message: using
>> https://soc.googlecode.com/svn
>> http auth: user [EMAIL PROTECTED], password not set
>> sending between command
>> abort: http authorization required
>>
>>
>> !ENTRY com.vectrace.MercurialEclipse 4 0 2008-11-18 13:59:44.838
>> !MESSAGE pull operation failed
>> !STACK 1
>> com.vectrace.MercurialEclipse.exception.HgException: Process error,
>> return code: 1, message: Auth realm: <https://soc.googlecode.com:443>
>> Google Code Subversion Repository
>> ** unknown exception encountered, details follow
>> ** report bug details to http://www.selenic.com/mercurial/bts
>> ** or [EMAIL PROTECTED]
>> ** Mercurial Distributed SCM (version f5f6b7dcd217+20081118)
>> ** Extensions loaded: children, churn, convert, fetch, gpg, graphlog,
>> imerge, inotify, mq, patchbomb, purge, record, transplant, rebase, svn
>> Traceback (most recent call last):
>>   File "/usr/bin/hg", line 20, in <module>
>>     mercurial.dispatch.run()
>>   File "/usr/lib/python2.5/site-packages/mercurial/dispatch.py", line 20, in
>> run
>>     sys.exit(dispatch(sys.argv[1:]))
>>   File "/usr/lib/python2.5/site-packages/mercurial/dispatch.py", line
>> 29, in dispatch
>>     return _runcatch(u, args)
>>   File "/usr/lib/python2.5/site-packages/mercurial/dispatch.py", line
>> 45, in _runcatch
>>     return _dispatch(ui, args)
>>   File "/usr/lib/python2.5/site-packages/mercurial/dispatch.py", line
>> 367, in _dispatch
>>     ret = _runcommand(ui, options, cmd, d)
>>   File "/usr/lib/python2.5/site-packages/mercurial/dispatch.py", line
>> 420, in _runcommand
>>     return checkargs()
>>   File "/usr/lib/python2.5/site-packages/mercurial/dispatch.py", line
>> 376, in checkargs
>>     return cmdfunc()
>>   File "/usr/lib/python2.5/site-packages/mercurial/dispatch.py", line
>> 359, in <lambda>
>>     d = lambda: func(ui, repo, *args, **cmdoptions)
>>   File "/home/tlarsen/Code/hgsubversion/__init__.py", line 10, in svn
>>     return svncommand.svncmd(ui, repo, subcommand, *args, **opts)
>>   File "/home/tlarsen/Code/hgsubversion/svncommand.py", line 39, in svncmd
>>     **opts)
>>   File "/home/tlarsen/Code/hgsubversion/fetch_command.py", line 45, in
>> fetch_revisions
>>     svn = svnwrap.SubversionRepo(svn_url, username=merc_util.getuser())
>>   File "/home/tlarsen/Code/hgsubversion/svnwrap/svn_swig_wrapper.py",
>> line 115, in __init__
>>     self.init_ra_and_client()
>>   File "/home/tlarsen/Code/hgsubversion/svnwrap/svn_swig_wrapper.py",
>> line 141, in init_ra_and_client
>>     svn_config, self.pool)
>>   File "/var/lib/python-support/python2.5/libsvn/ra.py", line 508, in
>> svn_ra_open2
>>     return apply(_ra.svn_ra_open2, args)
>> svn.core.SubversionException: ("OPTIONS of
>> 'https://soc.googlecode.com/svn': authorization failed
>> (https://soc.googlecode.com)", 170001)
>>
>>       at
>> com.vectrace.MercurialEclipse.commands.AbstractShellCommand.executeToBytes(AbstractShellCommand.java:178)
>>       at
>> com.vectrace.MercurialEclipse.commands.AbstractShellCommand.executeToBytes(AbstractShellCommand.java:125)
>>       at
>> com.vectrace.MercurialEclipse.commands.AbstractShellCommand.executeToBytes(AbstractShellCommand.java:121)
>>       at
>> com.vectrace.MercurialEclipse.commands.AbstractShellCommand.executeToString(AbstractShellCommand.java:217)
>>       at
>> com.vectrace.MercurialEclipse.commands.HgSvnClient.pull(HgSvnClient.java:30)
>>       at
>> com.vectrace.MercurialEclipse.wizards.PullRepoWizard$PullOperation.performPull(PullRepoWizard.java:175)
>>       at
>> com.vectrace.MercurialEclipse.wizards.PullRepoWizard$PullOperation.run(PullRepoWizard.java:246)
>>       at
>> org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
>> !SUBENTRY 1 com.vectrace.MercurialEclipse 4 -100 2008-11-18 13:59:44.838
>> !MESSAGE Process error, return code: 1, message: Auth realm:
>> <https://soc.googlecode.com:443> Google Code Subversion Repository
>> ** unknown exception encountered, details follow
>> ** report bug details to http://www.selenic.com/mercurial/bts
>> ** or [EMAIL PROTECTED]
>> ** Mercurial Distributed SCM (version f5f6b7dcd217+20081118)
>> ** Extensions loaded: children, churn, convert, fetch, gpg, graphlog,
>> imerge, inotify, mq, patchbomb, purge, record, transplant, rebase, svn
>> Traceback (most recent call last):
>>   File "/usr/bin/hg", line 20, in <module>
>>     mercurial.dispatch.run()
>>   File "/usr/lib/python2.5/site-packages/mercurial/dispatch.py", line 20, in
>> run
>>     sys.exit(dispatch(sys.argv[1:]))
>>   File "/usr/lib/python2.5/site-packages/mercurial/dispatch.py", line
>> 29, in dispatch
>>     return _runcatch(u, args)
>>   File "/usr/lib/python2.5/site-packages/mercurial/dispatch.py", line
>> 45, in _runcatch
>>     return _dispatch(ui, args)
>>   File "/usr/lib/python2.5/site-packages/mercurial/dispatch.py", line
>> 367, in _dispatch
>>     ret = _runcommand(ui, options, cmd, d)
>>   File "/usr/lib/python2.5/site-packages/mercurial/dispatch.py", line
>> 420, in _runcommand
>>     return checkargs()
>>   File "/usr/lib/python2.5/site-packages/mercurial/dispatch.py", line
>> 376, in checkargs
>>     return cmdfunc()
>>   File "/usr/lib/python2.5/site-packages/mercurial/dispatch.py", line
>> 359, in <lambda>
>>     d = lambda: func(ui, repo, *args, **cmdoptions)
>>   File "/home/tlarsen/Code/hgsubversion/__init__.py", line 10, in svn
>>     return svncommand.svncmd(ui, repo, subcommand, *args, **opts)
>>   File "/home/tlarsen/Code/hgsubversion/svncommand.py", line 39, in svncmd
>>     **opts)
>>   File "/home/tlarsen/Code/hgsubversion/fetch_command.py", line 45, in
>> fetch_revisions
>>     svn = svnwrap.SubversionRepo(svn_url, username=merc_util.getuser())
>>   File "/home/tlarsen/Code/hgsubversion/svnwrap/svn_swig_wrapper.py",
>> line 115, in __init__
>>     self.init_ra_and_client()
>>   File "/home/tlarsen/Code/hgsubversion/svnwrap/svn_swig_wrapper.py",
>> line 141, in init_ra_and_client
>>     svn_config, self.pool)
>>   File "/var/lib/python-support/python2.5/libsvn/ra.py", line 508, in
>> svn_ra_open2
>>     return apply(_ra.svn_ra_open2, args)
>> svn.core.SubversionException: ("OPTIONS of
>> 'https://soc.googlecode.com/svn': authorization failed
>> (https://soc.googlecode.com
>> )", 170001)
>>
>> >>
>>
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"MercurialEclipse" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/mercurialeclipse?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to