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
Eric Hopper
cab8740b9b
Adding changegroupsubset and lookup to ssh protocol so pull -r and
...
clone -r can be supported.
2006-09-09 18:25:06 -07:00
Alexis S. L. Carvalho
189bc7b5b8
portability fix for test-ssh
...
The __del__ method of sshrepo reads the stderr of the remote process
until EOF and prints it.
If an exception is raised, this method ends up being called:
- on Linux: after the "abort: ..." message is printed
- on OS X: before the "abort: ..." message is printed
This patch explicitly flushes the stderr of the remote process before
raising a RepoError.
2006-10-12 20:45:25 -03:00
Benoit Boissinot
3a1d29d975
ssh: make the error message more clear, add a testcase
2006-10-06 16:24:14 +02:00
Benoit Boissinot
2baab981fb
sshrepo: don't try to validate when creating the repo
...
- This removes the "repo not found" error when cloning or init-ing a remote
repo.
- Since the remote hg will abort if the repo already exists we don't need to
validate it.
2006-09-13 19:57:40 +02:00
Benoit Boissinot
955f1cbc96
sshrepo: when creating a repo, raise an error if it already exists
2006-09-02 23:14:35 +02:00
Benoit Boissinot
45f114cbf2
sshrepo: flush stderr before connecting to the hg server
2006-09-02 21:08:54 +02:00
Vadim Gelfer
dc377b58c1
update copyrights.
2006-08-12 12:30:02 -07:00
Vadim Gelfer
b7a96d1742
clean up hg.py: move repo constructor code into each repo module
2006-07-31 07:11:12 -07:00
Vadim Gelfer
0778999161
hooks: add url to changegroup, incoming, prechangegroup, pretxnchangegroup hooks
...
all repository classes now have url() method that returns url of repo.
2006-07-25 13:50:32 -07:00
Vadim Gelfer
9ea4436262
add support for streaming clone.
...
existing clone code uses pull to get changes from remote repo. is very
slow, uses lots of memory and cpu.
new clone code has server write file data straight to client, client
writes file data straight to disk. memory and cpu used are very low,
clone is much faster over lan.
new client can still clone with pull, can still clone from older servers.
new server can still serve older clients.
2006-07-14 11:17:22 -07:00