Dan Villiom Podlaski Christiansen
dfbd282c53
svnwrap/tests: use the subprocess module rather than the popen module.
...
The output from the command is supressed. Use check_call() to ensure
the detection of failures.
2009-05-03 18:25:48 +02:00
Dan Villiom Podlaski Christiansen
0440b85931
svn_swig_wrapper: remove explicit invocation of the garbage collector
...
It's the Subversion bindings that are broken, not Python. I think.
2009-05-01 13:01:20 +02:00
Dan Villiom Podlaski Christiansen
4a604b8889
First merge, totally untested.
2009-05-01 10:28:59 +02:00
Patrick Mezard
c92d2bf4fa
Use svn 1.6 platform specific auth providers if available
2009-04-22 23:24:58 +02:00
Luke Opperman
5e1db5a78e
Remove stray prints
2009-04-14 09:32:09 -05:00
Augie Fackler
ae5062ada9
Clean up TODOs that are no longer relevant.
2009-04-13 21:19:13 -05:00
Augie Fackler
3a142b1849
Fix a boneheaded mistake I made when I touched up a previous patch.
2009-04-08 10:28:56 -05:00
Daniel Tang
4a245c23b5
Add support for user:pass@url repositories to be hg-like
2009-04-06 11:19:51 -04:00
Daniel Tang
578aaf5fe9
Add --username and --password options to all commands
2009-04-06 02:52:14 -04:00
Daniel Tang
8140653efb
Fix SubversionRepo to actually use provided username
2009-04-06 02:50:22 -04:00
Augie Fackler
eeee067c89
Merge with crew.
2009-04-07 13:48:58 -05:00
Augie Fackler
9bb1cfc43f
Stopped idiotic filtering of revisions that did not edit something branches/tags/trunk.
...
Fixed a bunch of tests as a result. This likely will make new conversions of some repos have new revisions in them.
2009-03-27 16:56:07 -05:00
Dan Villiom Podlaski Christiansen
5e0614033a
Allow specifying a revision to stop at using the -H flag.
...
This is useful for converting repositories which have been deleted or
renamed, such as llvm-gcc-4-2 in the LLVM repositories which was
renamed to llvm-gcc-4.2 shortly after its creation.
Also, consolidate the two places in svn_swig_wrapper.py where a
default chunk size is specified to one, single variable declaration.
2009-03-27 03:21:45 +01:00
Dan Villiom Podlaski Christiansen
de05131c42
Various cleanups, cosmetics and removal of superfluous assertions.
2009-03-27 03:16:21 +01:00
Dan Villiom Podlaski Christiansen
81fbf8f323
Two minor optimisations/cleanups for svn_swig_wrapper:
...
- 'self' is not used in 'RaCallbacks', so use the @staticmethod
decorator syntax introduced in Python 2.4.
- Make 'Revision' derive from 'tuple' and use property getters to
obtain the individual values. In N+1 years, we can use the
NamedRecord introduced in Python 2.6.
2009-03-27 02:50:01 +01:00
Dan Villiom Podlaski Christiansen
f434f48525
Exception clean-ups; use symbolic names & avoid Python 2.6 deprecations.
2009-03-19 21:27:39 +01:00
Dan Villiom Podlaski Christiansen
0e8cb48ece
Exception clean-ups; use symbolic names & avoid Python 2.6 deprecations.
2009-03-19 21:27:39 +01:00
Augie Fackler
664ecd5406
Add a naive hg svn version command that works as long as hgsubversion is run from a checkout.
2009-02-10 14:52:26 -06:00
Benoit Boissinot
e9bbb4b6f5
remove decorators (compat with python2.3)
2009-01-13 13:59:50 +01:00
Augie Fackler
de990f1817
svn_swig_wrapper: hacky workaround to prevent running out of files in stupid
...
replay.
2009-01-06 14:54:32 -06:00
Patrick Mezard
5629bbe05a
Support svn:externals changes via .hgsvnexternals updates
2009-01-02 15:54:05 -06:00
Patrick Mezard
5ae9dd6e23
SubversionRepo: simplify and rename proplist() into list_prop()
...
list_prop() will be used to retrieve svn:externals properties. Current
implementation was unused and was simplified to match the use case.
2008-12-30 20:33:59 -06:00
Augie Fackler
6f8b90fbad
utility_commands: Implement rebuildmeta so that metadata can be rebuilt.
...
hg_delta_editor: Fixed some longstanding branch_info bugs detected while
rebuilding meta.
2008-12-23 22:19:26 -06:00
Patrick Mezard
a1dea77fe1
SubversionRepo: work around ra.get_files() not releasing input buffer
2008-12-02 20:13:13 -06:00
Patrick Mezard
a46560a49e
hg_delta_editor: fix symlink prefix confusion
...
- SubversionRepo.get_file() strips the symlink prefix
- Enforce that hg_delta_editor symlink data always contains the prefix. The
alternative was seducing and more consistent with hg content but it makes the
code more complicated since svn:special can be set before or after the content
is set, and we need it in apply_textdelta()
This issue fixes jQuery repository conversion at r3674.
2008-11-20 22:41:15 -06:00
Augie Fackler
2df035818d
svnwrap: Fix handling of auth providers so cached credentials can work.
...
Also fixed things so that svn 1.6 should enable platform-specific auth providers.
2008-11-19 09:41:09 -06:00
Patrick Mezard
b9a4fe09c2
SubversionRepo: remember svn.diff3() does not work
...
Calling it repeatedly is expensive, files and directories are created,
svn transport layer is reset.
2008-11-14 16:18:24 -06:00
Patrick Mezard
e45c792412
fetch_command: in stupid non-diffy mode, take changed paths in account
...
Former code was checkouting all branch files for every converted
revision when diffs were not available in stupid mode. Now, only
changed items are requested.
2008-11-14 16:18:24 -06:00
Patrick Mezard
f1278f2869
push_cmd: delete empty svn directories, refactor directory creation
2008-11-14 16:18:24 -06:00
Patrick Mezard
8a41385c59
SubversionRepo: close files before rmtree() in diff3
...
Open files cannot be removed if open (by default) under Windows.
2008-11-14 16:18:24 -06:00
Patrick Mezard
e03678b306
fetch_command: bypass export3() and checkout manually
...
This method has several advantages:
- export3() does not work very well under Windows, while client.list() and
ra.get_file() do
- File modes are retrieved from get_file() for free, instead of being read from
the filesystem, which does not work under Windows, more generally the
filesystem is bypassed completely.
- It can be made much smarter by checkouting changed files only, like convert
extension does.
2008-11-09 18:08:35 -06:00
Patrick Mezard
5dee2cf35e
SubversionRepo: make get_file() return the file mode
...
It is cheap to get it, and it will be useful to fetch revisions.
2008-11-09 18:08:35 -06:00
Patrick Mezard
aa3d5dad6a
SubversionRepo: add optrev() to help generate client API revisions
2008-11-09 18:08:35 -06:00
Patrick Mezard
ae21ef395a
SubversionRepo: do not use temporary file in get_file()
...
Existing code says swig bindings do not support StringIO objects as output for
svn.ra.get_file(). This issue was never reported in the convert extension.
2008-11-09 18:08:35 -06:00
Patrick Mezard
8162f33ac0
push_cmd: handle copies at file level
...
Mercurial store knows only file-level copies, directory copies are handle with
heuristics. Implement the former one in svn backends.
2008-11-05 13:37:08 +01:00
Augie Fackler
6eab79fb0f
svnwrap: Fix leakage of temp dirs by using try/finally blocks.
2008-11-09 17:08:09 -06:00
Augie Fackler
90bc5e409c
Added some coverage pragmas to stop it from trying to cover things we can't test.
2008-11-06 09:47:42 -06:00
Augie Fackler
8c7063dc0f
Performance fix for branches-from-tags in real replay, which is tied up with
...
changes that fix problems when trunk is not the oldest branch. Also includes
fixes for copying from a tag that we chose not to create (eg tagging a vendor
branch) and includes tests for all of those things.
2008-11-04 16:38:16 -06:00
Shun-ichi GOTO
62f4f3ec23
Catch other varieties of the server not having replay.
2008-11-01 13:05:56 -05:00
Augie Fackler
80516ef041
Drop any pretense of supporting svn 1.4.x.
...
The quality of the SWIG bindings is just too low for this to work reasonably. In theory, 1.4.x will be supported at a future date by ctypes.
2008-11-01 12:23:07 -05:00
Valentino Volonghi aka dialtone
f7b64a3627
fix svn push when there's just a file removal
2008-10-29 14:11:04 -07:00
Augie Fackler
7334dc703f
This appears to fix pushing over both the http and svn protocols.
2008-10-29 11:48:58 -05:00
Augie Fackler
65f3d0b450
Change the implementation of the ra_session stuff. Thanks to Ben Collins-Sussman for pointing out the problem with the other method I was using.
...
Note: this may appear to break commits over certain ra layers. Those layers were probably not working properly anyway.
2008-10-28 22:52:58 -05:00
Augie Fackler
5c080c5f14
Fix tests against the improved SWIG bindings in Subversion 1.6.
2008-10-18 18:56:09 -05:00
Augie Fackler
cfee1e9650
Reworked the svnwrap tests to use the same fixture system as I created for the hgsubversion tests since it is much much faster.
2008-10-09 23:37:22 -05:00
Augie Fackler
212e72dbb4
Minor fixes to the push command to make it more robust.
2008-10-08 16:44:40 -05:00
Augie Fackler
3495c70f67
Auto-set executable, symlink, and auto-props.
2008-10-06 13:52:10 -05:00
Augie Fackler
7e0ef18aaf
Fix adding files that require new directories.
2008-10-06 11:01:46 -05:00
Augie Fackler
6f047e7f60
Reorganized the testing infrastructure a bit so that svnwrap is really separate from the rest of the project. Also made it easier to add more tests in the future without making the directory full of annoying files.
2008-10-03 09:41:25 -05:00
Augie Fackler
13225e8b82
Fixes for win32 compatibility. Changes suggested by Shun-ichi GOTO, with some alterations by me.
2008-10-02 09:13:08 -05:00