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
Augie Fackler
7b76bdbc02
Initial import of hgsubversion into a public repository.
2008-09-30 11:42:52 -05:00