Augie Fackler
b26e80aacc
test renames: remove redundant code
2009-12-24 14:46:03 -06:00
Augie Fackler
15d8f2ac36
tests: test paths with spaces
2009-12-24 13:38:06 -06:00
Augie Fackler
58c98f67c2
paths: autoescape paths from the user
...
This means that users should no longer URI-encode their paths. This is
a change from the past, and may require some small changes to .hg/hgrc.
This fixes certain odd issues resulting from inconsistent handling
of URI-encoding throughout hgsubversion.
2009-12-24 13:30:08 -06:00
Afriza N. Arief
da243c0327
Do URI-encode before opening
2009-12-24 13:10:36 -06:00
Augie Fackler
3e1e3de7b6
setup: write out version info
2009-12-15 09:12:00 -06:00
Augie Fackler
58d5d5297a
utility_commands: remove old svn version command in favor of new wrapper
2009-12-14 09:36:22 -06:00
Augie Fackler
6701a5e7ab
wrappers: wrap version with a --svn flag
2009-12-14 09:35:04 -06:00
Augie Fackler
b93a29dc3e
__init__: document wrapping commands more clearly
2009-12-14 09:34:46 -06:00
Dan Villiom Podlaski Christiansen
a9a41202ed
fallback to the previous scheme for file repositories.
...
This improves compatibility with hg-git.
2009-12-13 17:15:01 +01:00
Dan Villiom Podlaski Christiansen
7a73a82ce0
do not assume that doc-strings are present.
...
A couple of places in the code assumed that docstrings were set. This
prevented hgsubversion from loading when Mercurial is run under
`python -OO'.
2009-12-13 17:27:19 +01:00
Jason Ostrander
f59461883f
Add a -r option to hg svn. Use with hg svn info to change the mercurial rev.
2009-12-10 13:04:57 -08:00
Augie Fackler
83d943ae6e
single: add another test for single-dir push
2009-11-25 23:09:26 -05:00
Vitaliy Filippov
315f686548
single: fix push
2009-11-25 23:10:32 -05:00
Daniel Tang
00a47ee1ee
push: fix for single directory repository layouts
2009-10-20 14:34:00 -04:00
Augie Fackler
b0da25dd93
Support for single-directory clones.
2009-10-16 23:33:41 -04:00
Augie Fackler
2bd7b60221
replay: fix potential over-reporting of edited files in hg changelog
2009-10-16 18:37:19 -04:00
Augie Fackler
f786e87434
util: make aresamefiles take one file and just be issamefile instead.
2009-10-16 19:09:53 -04:00
Augie Fackler
25434e7bb3
copies: fix under-reporting of copies in hg
2009-10-16 19:09:25 -04:00
Augie Fackler
ac82e0783c
stupid: detect renames with empty branchpath properly
2009-10-07 18:27:35 -04:00
Augie Fackler
353c79d612
stupid: remove stray print statements, keep one as a ui.debug
2009-10-07 19:05:01 -04:00
Dirkjan Ochtman
a7e59a56e2
try to deal with weirdly located branches in rebuildmeta ( #118 )
2009-09-22 16:46:16 +02:00
Augie Fackler
5af1192627
test_util: sort imports
2009-09-15 22:34:53 -04:00
Augie Fackler
7aa1f575c0
svn_swig_wrapper: minor code cleanup.
2009-09-15 21:34:14 -04:00
Augie Fackler
718efe9b65
stupid: 80col OCD
2009-09-15 21:22:47 -04:00
Chema Cortes
10c378b177
svnwrap: properly escape URLs before giving them to libsvn_*
...
(patch tweaked somewhat by Augie Fackler)
2009-09-15 18:26:13 -04:00
Augie Fackler
c7cf7e9acc
Add a test for URLs that have spaces in them.
2009-09-15 21:57:17 -04:00
Augie Fackler
63bdeaaa76
test_util: fix up line endings
2009-08-12 16:54:21 -04:00
Augie Fackler
cd45b27283
test_util: specify LANG=LC_ALL=C so l10n stops breaking tests
2009-09-15 22:33:41 -04:00
Augie Fackler
911e6425b7
COPYING: include license (GPL == v2)
2009-08-08 08:14:19 -05:00
Augie Fackler
78ab48bb18
Merge win32 fixes
2009-08-08 08:01:24 -05:00
Martin Geisler
e4be2f8643
README: update URL to Mercurial wiki
2009-08-08 07:49:39 -05:00
Martin Geisler
70aea5b32f
README: Mercurial 1.3 is no longer in development
2009-08-08 07:49:22 -05:00
Risto Kankkunen
a58890b5be
No os.kill() in Windows, use ctypes to call Win32 TerminateProcess()
2009-07-29 19:01:13 +03:00
Risto Kankkunen
0db6274d7c
Reclaim repository object to avoid tearDown() failing to remove the open file 'testrepo/db/rep-cache.db'
2009-07-29 18:38:28 +03:00
Risto Kankkunen
1f2d044467
Make tearDown() be able to delete read-only files to avoid an exception when removing 'testrepo/db/format'
2009-07-29 18:03:02 +03:00
Risto Kankkunen
7ef4f586e9
Avoid 'Abort: Illegal repository URL' exception
2009-07-29 17:41:40 +03:00
Risto Kankkunen
86c848fa77
Avoid 'ValueError: close_fds is not supported on Windows platforms' exception
2009-07-29 17:26:29 +03:00
Risto Kankkunen
33f76a3f2d
No os.spawnvp() in Windows, use subprocess.call() instead
2009-07-29 16:34:15 +03:00
David Stanek
6bd96196bb
Remove the svn+ from svn+https urls before calling the Subversion API. This was already being done for svn+http urls.
2009-07-20 16:00:37 -04:00
Augie Fackler
f12e0f5220
tags: handle the most recent commit being an edit to an svn tag properly
2009-07-18 22:30:59 -05:00
Max Bowsher
ba817049eb
Fix 'parent dir of a branch is deleted' refactoring from 343da84.
2009-07-04 18:12:18 +01:00
Patrick Mezard
8888ce5e4a
stupid: take tbdelta closed branches in account
...
Otherwise, deleting 'branches' will go undetected since it does not touch
existing branches.
2009-07-18 20:44:33 -05:00
Patrick Mezard
98b3ca8540
Bypass demandimport for all svn submodules
...
This makes convert and hgsubversion work correctly together again
2009-07-18 20:44:33 -05:00
Patrick Mezard
0483c8f48f
svnexternals: display svn commands output with --verbose
...
Really useful to debug svn connectivity or locking problems.
2009-07-18 20:44:33 -05:00
Patrick Mezard
735b575536
Revive svn+http(s) URLs support (issue94)
...
Telling svn from mercurial repository automatically is not always possible, or
at least not seamlessly. Let 'http://repo.com/svn ' be an svn repository,
protected with basic authentication. Trying to clone it directly does something
like:
1- Open it like a mercurial repository:
* send between command, ask for credentials, fail
* fallback to static-http, ask for crendentials two times, fail
2- Open it like an svn repository
Mercurial [auth] facility is helpful here, but few people know about it, and it
may seem weird to store svn credentials in mercurial configuration. An svn-like
password manager would not help either because all connections attempts in [1]
fail and it's unlikely we would store credentials in this situation. Instead,
we can clone 'svn+http://repo.com/svn ', which will skip step [1].
2009-07-18 20:44:33 -05:00
Patrick Mezard
54d3cf4643
svnrepo: expose the same svnurl than SubversionRepo
...
Since the ssh+svn URLs depend on supplied credentials, and because we want to
get the actual SVN URL without talking to the remote repository, we duplicate
the work done by SubversionRepo.
2009-07-18 20:44:33 -05:00
Patrick Mezard
3cdd5ec399
svnwrappers: override svn+ssh credentials with supplied ones if any
...
svn+ssh URLs are special because the authentication layer is not handled by
svn, so they must contain the username to be resolved seamlessly. Until now,
credentials supplied from the command line were ignored when rewriting those
URLs. Fix that.
2009-07-18 20:44:33 -05:00
Patrick Mezard
e32ff65d7c
pushmod: pass SubversionRepo directly to commit()
2009-07-18 20:44:33 -05:00
Patrick Mezard
27f9d173fc
util: remove swap_out_encoding() deprecated comment
2009-07-18 20:44:33 -05:00
Patrick Mezard
15296e29f4
Extend svnrepos with SubversionRepo and SVNMeta
...
SubversionRepo and SVNMeta are now hidden behind svnremoterepo and
svnlocalrepo. It unifies the way svn credentials are read from the command line
and configuration file, at the cost of import cycle between svnrepo and
wrappers. It is currently not a big deal thanks to demandimport.
2009-07-18 20:44:33 -05:00