Bug 2759 - svn subrepos checkout stalls on interactive prompting from subversion
Summary: svn subrepos checkout stalls on interactive prompting from subversion
Status: RESOLVED FIXED
Alias: None
Product: Mercurial
Classification: Unclassified
Component: Mercurial (show other bugs)
Version: unspecified
Hardware: All All
: normal bug
Assignee: Augie Fackler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-08 19:53 UTC by Philip Jenvey
Modified: 2011-05-31 21:00 UTC (History)
6 users (show)

See Also:
Python Version: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philip Jenvey 2011-04-08 19:53 UTC
svn can prompt the user in some situations, like when checking out a 
repository from an https server with an invalid certificate.

E.g.
Error validating server certificate: 
 - Unknown certificate issuer 
 - Certificate has expired 
... 
(R)eject, accept (t)emporarily or accept (p)ermanently? p 
Authentication realm: .. 
Password for 'root' 
Authentication realm: .. 
Username: repuser 
Password for 'repuser': 
Error validating server certificate: 
 - Unknown certificate issuer 
 - Certificate has expired 
(R)eject, accept (t)emporarily or accept (p)ermanently? p 

The subrepo support needs to either detect situations like this, or run 
subversion with --non-interactive (--trust-server-cert might also be 
required in this situation too, I'm not sure yet, more testing is required).
Comment 1 Matt Mackall 2011-04-09 09:30 UTC
In this situation, it seems like being non-interactive would mean aborting
(we certainly wouldn't take a less secure route). So I'm not convinced that
non-interactive would be good here.
Comment 2 Augie Fackler 2011-04-09 19:11 UTC
We should probably pass --non-interactive to svn if we're running non-
interactive. I'll take a look at that.
Comment 3 HG Bot 2011-04-30 02:00 UTC
Fixed by http://selenic.com/repo/hg/rev/1052b1421a48
Augie Fackler <durin42@gmail.com>
subrepo: tell Subversion when we are non-interactive (issue2759)

(please test the fix)
Comment 4 Régis Desgroppes 2011-05-30 04:15 UTC
passing stdin=subprocess.PIPE then closing parent write side would also do
the job I think.
Comment 5 HG Bot 2011-05-31 21:00 UTC
Fixed by http://selenic.com/repo/hg/rev/f0f965098810
Augie Fackler <durin42@gmail.com>
subrepo: make stdin for svn a pipe for non-interactive use (issue2759)

(please test the fix)
Comment 6 Bugzilla 2012-05-12 09:19 UTC

--- Bug imported by bugzilla@serpentine.com 2012-05-12 09:19 EDT  ---

This bug was previously known as _bug_ 2759 at http://mercurial.selenic.com/bts/issue2759