Peter Arrenbrecht
67e220a8d7
sshrepo: fix addchangegroup's signature
...
Make it mirror the usage found in localrepo.push. This should only
affect pushes to pre-unbundle ssh servers.
2011-06-06 21:02:48 +02:00
Martin Geisler
af8a35e078
check-code: flag 0/1 used as constant Boolean expression
2011-06-01 12:38:46 +02:00
Martin Geisler
b8eb9675f3
localrepo, sshrepo: use Boolean create argument in __init__
2011-05-18 19:30:17 +02:00
Brodie Rao
b7f0d2a103
url: move URL parsing functions into util to improve startup time
...
The introduction of the new URL parsing code has created a startup
time regression. This is mainly due to the use of url.hasscheme() in
the ui class. It ends up importing many libraries that the url module
requires.
This fix helps marginally, but if we can get rid of the urllib import
in the URL parser all together, startup time will go back to normal.
perfstartup time before the URL refactoring (707e4b1e8064):
! wall 0.050692 comb 0.000000 user 0.000000 sys 0.000000 (best of 100)
current startup time (9ad1dce9e7f4):
! wall 0.070685 comb 0.000000 user 0.000000 sys 0.000000 (best of 100)
after this change:
! wall 0.064667 comb 0.000000 user 0.000000 sys 0.000000 (best of 100)
2011-04-30 09:43:20 -07:00
Idan Kamara
762d333ae9
eliminate various naked except clauses
2011-04-23 00:51:25 +03:00
Matt Mackall
d0ca936e58
url: nuke some newly-introduced underbars in identifiers
2011-03-31 10:43:53 -05:00
Brodie Rao
de32ed5320
httprepo/sshrepo: use url.url
...
Like the previous patch to getauthinfo(), this also makes
username/password parsing more forgiving for SSH URLs.
This also opens up the possibility of allowing non-numeric ports,
since the URL parser has no problem handling them.
Related issues:
- issue851: @ in password in http url
- issue2055: nonnumeric port bug with https protocol
2011-03-30 20:01:35 -07:00
Peter Arrenbrecht
5925b26799
wireproto: fix handling of '*' args for HTTP and SSH
2011-03-22 07:38:32 +01:00
Adrian Buehlmann
b9288e15e7
sshrepo: catch passwords in ssh urls
...
see also d0162aaab5fc
2011-02-23 11:42:41 +01:00
Dan Villiom Podlaski Christiansen
a0d21ffc4d
sshrepo: don't use readline() on the stderr pipe
...
For some reason, the stat/readline dance suppressed lines following
the first in PyPy 1.4.
2010-12-01 21:46:08 +01:00
Brodie Rao
203cf2fbd9
cleanup: remove unused imports
2010-08-27 13:32:38 -04:00
Matt Mackall
4ee67d66e2
ssh: drop some old imports
2010-07-15 15:06:45 -05:00
Matt Mackall
d46a89387f
protocol: unify client unbundle support
...
- introduce _callpush helper
- factor out differences in result handling into helpers
- unify
2010-07-14 17:12:18 -05:00
Matt Mackall
8c936882a2
protocol: unify client changegroup methods
2010-07-14 17:09:31 -05:00
Matt Mackall
c5c85846bb
protocol: convert some ssh abort calls
2010-07-14 17:07:13 -05:00
Matt Mackall
a91ad01089
protocol: clean up call-like functions in http and ssh clients
2010-07-14 17:07:10 -05:00
Matt Mackall
60b140435c
protocol: unify stream_out client code
2010-07-14 16:55:44 -05:00
Matt Mackall
0b86557977
protocol: move basic ssh client commands to wirerepository
2010-07-14 16:34:57 -05:00
Matt Mackall
2ba2a77855
pushkey: add ssh support
2010-06-16 16:05:13 -05:00
Matt Mackall
aea05348a2
sshrepo: sort arguments
...
All current commands have zero or one args. Future multi-arg commands
will want args to appear in a deterministic order.
2010-06-16 15:01:09 -05:00
Greg Ward
89bd117131
push: document return values between various repo methods.
...
This starts at localrepository.push() and seeps down to
push_addchangegroup(), push_unbundle(), prepush(), addchangegroup(),
and leaks out to sshrepository.unbundle(), sshrepository.addchangegroup(),
and httprepository.unbundle(). Seems to cover everything you ever
wanted to know about pushing but were afraid to ask.
2010-05-02 21:56:25 -04:00
Matt Mackall
8d99be19f0
many, many trivial check-code fixups
2010-01-25 00:05:27 -06:00
Matt Mackall
595d66f424
Update license to GPLv2+
2010-01-19 22:20:08 -06:00
Sune Foldager
a2d25fc09b
branchmap: fix defective fallback fix a3d9c67908ca
...
The fix applied as a3d9c67908ca doesn't work and is essentially a no-op.
This fix also adds a comment about the nature of the problem, and a test.
2009-11-18 15:20:08 +01:00
Henrik Stuart
1d4d06ceca
support encoding fallback in branchmap to maintain compatibility with 1.3.x
2009-11-16 13:35:36 +01:00
Martin Geisler
9f1896c083
do not attempt to translate ui.debug output
2009-09-19 01:15:38 +02:00
Henrik Stuart
a4975b3627
named branches: client branchmap wire protocol support (issue736)
...
Co-contributor: Sune Foldager <cryo@cyanite.org>
2009-05-23 17:03:51 +02:00
Martin Geisler
e8bc5f4f01
util: remove ignored mode argument in popen[23]
2009-05-09 17:32:57 +02:00
Simon Heimberg
09ac1e6c92
separate import lines from mercurial and general python modules
2009-04-28 17:40:46 +02:00
Martin Geisler
750183bdad
updated license to be explicit about GPL version 2
2009-04-26 01:08:54 +02:00
Matt Mackall
f6c8930392
replace various uses of list.reverse()
2009-04-26 16:50:44 -05:00
Martin Geisler
1deb417a82
util: use built-in set and frozenset
...
This drops Python 2.3 compatibility.
2009-04-22 00:55:32 +02:00
Peter Arrenbrecht
bc21361ed2
cleanup: drop unused imports
2009-03-23 13:12:07 +01:00
Matt Mackall
c148b50f2e
sshrepo: change raise_ to abort
2009-01-12 11:28:30 -06:00
Matt Mackall
534da54d07
error: move UnexpectedOutput (now ResponseError)
2009-01-12 11:28:28 -06:00
Matt Mackall
e0735a1762
error: move repo errors
...
rename NoCapability to CapabilityError
2009-01-12 10:42:31 -06:00
Dirkjan Ochtman
574603a8c0
use dict.iteritems() rather than dict.items()
...
This should be faster and more future-proof. Calls where the result is to be
sorted using util.sort() have been left unchanged. Calls to .items() on
configparser objects have been left as-is, too.
2009-01-12 09:16:03 +01:00
Benoit Boissinot
d4f73288f1
protocol/between: the protocol expects to have ' '-separated tuples
2008-10-22 21:41:57 +02:00
Dirkjan Ochtman
67bd09df5b
python2.6: use subprocess if available
2008-10-05 21:35:26 +02:00
Martin Geisler
28fb695e9a
i18n: mark strings for translation in Mercurial
2008-08-31 16:12:02 +02:00
Matt Mackall
2f4925d536
remoterepo: no longer needed
...
All users already use repo.local() to test for local, which is false
in the repository base class. statichttprepository never derived from
this class anyway.
2008-03-20 11:12:35 -05:00
Joel Rosdahl
4f8012378a
Remove unused imports
2008-03-06 22:23:41 +01:00
Joel Rosdahl
5dae3059a0
Expand import * to allow Pyflakes to find problems
2008-03-06 22:23:26 +01:00
Alexis S. L. Carvalho
961a45df72
merge with crew-stable
2008-02-03 21:47:07 -02:00
Alexis S. L. Carvalho
65d93076b9
sshrepo: be more careful while reading data
...
This should avoid some tracebacks when the server sends some garbage.
2008-02-03 21:03:46 -02:00
Bryan O'Sullivan
3cd6b499f4
Fix typo.
2008-01-18 17:01:28 -08:00
Steve Borho
caa5fee772
win32: fix ssh://host:port when using Plink
...
Moves ssh argument building to platform specific utils code.
The win32 version looks for plink in ssh command string and
uses '-P' in lieu of '-p' for specifying a port
2007-12-12 16:44:26 -06:00
Patrick Mezard
7c1d0710ee
Merge with crew-stable
2007-09-10 23:53:23 +02:00
Alexis S. L. Carvalho
29dea75576
sshrepo: fix Windows command quoting
2007-09-10 23:34:33 +02:00
Bryan O'Sullivan
6fbb9f2f2f
Push capability checking into protocol-level code.
2007-08-27 14:48:08 -07:00