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
Bryan O'Sullivan
eba82ab39c
Turn capabilities into a mutable set, instead of a fixed tuple.
2007-08-27 14:16:04 -07:00
Alexis S. L. Carvalho
1ee06d75a7
Merge with crew-stable
2007-08-17 23:20:13 -03:00
Alexis S. L. Carvalho
11336d4a94
Fix sshrepo.unbundle
...
We weren't reading all the data sent by the server. Depending on
the system, the remote hg (actually, the remote python) could send a
"close failed: [Errno 32] Broken pipe", making some tests fail.
2007-08-17 22:43:38 -03:00
Matt Mackall
2bf7253b8a
fix-up references to repo.RepoError
2007-08-15 16:10:24 -05:00
Matt Mackall
296d6a7cb8
Simplify i18n imports
2006-12-14 20:25:19 -06:00
Matt Mackall
f17a4e1934
Replace demandload with new demandimport
2006-12-13 13:27:09 -06:00
Thomas Arendsen Hein
5a535feaec
Use UnexpectedOutput exception instead of RepoError in sshrepo, too.
2006-12-02 22:16:00 +01:00
Thomas Arendsen Hein
50e4cfc1b5
Change sshrepo.repoerror() into a more flexible sshrepo.raise_().
...
Now every exception can be raised with a cleanup, not only hg.RepoError.
2006-12-02 22:15:18 +01:00
Thomas Arendsen Hein
b5dd2b79f8
Don't show traceback on 'hg clone -r unknown ssh://hg.example.com/'.
2006-12-02 21:57:20 +01:00
Benoit Boissinot
6358cf0eea
sshrepo: fix the parsing of the ssh url
2006-10-31 23:56:52 +01:00
Eric Hopper
68a9f0d42a
sshrepo: add passing of lookup exceptions
2006-09-09 18:25:06 -07:00