Commit Graph

122 Commits

Author SHA1 Message Date
Patrick Mezard
8278052793 convert: fix subpaths detection in svn source 2008-04-14 22:31:33 +02:00
Thomas Arendsen Hein
657d20646f Fix spacing error introduced in d44685e2377e 2008-04-08 18:39:02 +02:00
Patrick Mezard
7d3027f767 convert: check svn branches are directories 2008-04-07 11:59:20 +02:00
Patrick Mezard
664a12a36c convert: allow tags detection to be disabled
Tags calculation becomes more reliable but slower, measurable on frequent
synchronizations.
2008-03-29 17:16:18 +01:00
Patrick Mezard
686a0f8465 convert: follow svn tags history (issue953) 2008-03-29 17:15:45 +01:00
Patrick Mezard
f6b95792a5 convert: avoid svn log retrieval process cleanup
With huge history (like kdelibs), the process termination suddenly consumes a
lot of memory (from 700M to 1.3G+). Since the job is done, clean termination is
not required, just exit.
2008-03-29 17:14:53 +01:00
Patrick Mezard
f51cfe018c convert: avoid querying log of foreign svn branches
Server configuration may prevent access to other branches, so don't even try to
get them, instead of ignoring them afterwards.
2008-03-16 00:35:14 +01:00
Joel Rosdahl
2cc739b2aa convert: Fix unbound name error in the subversion backend 2008-03-06 22:23:41 +01:00
Thomas Arendsen Hein
deb94bc7fe Removed trailing spaces from everything except test output 2008-03-07 00:24:36 +01:00
Patrick Mezard
1bee8eb741 convert: add shallow, single branch svn conversions via svn.startrev 2008-02-24 17:58:55 +01:00
Patrick Mezard
e6c6545487 convert: allow svn trunk/branches/tags detection to be skipped
- eluding convert.svn.branches defaults to "branches"
- convert.svn.branches= disables branches detection
- convert.svn.branches=/ is equivalent to former convert.svn.branches=
2008-02-24 17:58:53 +01:00
Thomas Arendsen Hein
46b0448de8 convert: Compatibility fixes for python2.3
set -> util.set
sort(reverse=True) -> sort(); reverse()
2008-02-09 13:08:02 +01:00
Patrick Mezard
39190bf52c convert: follow svn module parent moves 2008-01-26 14:45:04 +01:00
Patrick Mezard
517ab12c84 convert: prevent svn branches to leave the root module tree 2008-01-26 14:45:04 +01:00
Patrick Mezard
df58ea1100 convert: checkout svn root revisions
Using changed files is enough if whole history is converted. Checkouts are
required to restrict the conversion to user-supplied subtree.
2008-01-26 14:45:04 +01:00
Patrick Mezard
440a00cc2c convert: fix svn_source.latest() 2008-01-26 14:45:04 +01:00
Thomas Arendsen Hein
ddce807d45 merge with crew-stable 2008-01-22 00:55:01 +01:00
Thomas Arendsen Hein
64125b8004 convert: Do not abort with TypeError if svn commit message is None (issue934) 2008-01-21 21:44:16 +01:00
Patrick Mezard
2e6086567e convert: enforce svn_source.getchanges() files unicity 2008-01-21 10:04:35 +01:00
Patrick Mezard
8c795eef45 Merge with crew-stable 2008-01-21 14:15:38 +01:00
Patrick Mezard
094675cac4 Merge with crew-stable 2008-01-19 14:48:31 +01:00
Patrick Mezard
33d8300598 convert: fix invalid svn.ra.check_path() call (issue 771)
The svn transport must be reparented to repository root before using
check_path() with full entrypaths.
2008-01-19 14:39:30 +01:00
Patrick Mezard
f10cd30969 convert: document the subversion conversion model 2008-01-18 00:16:20 +01:00
Patrick Mezard
9dbb96c198 convert: fetch less revisions when looking for a branch parent 2008-01-17 23:46:56 +01:00
Patrick Mezard
0f86329781 convert: make svn revision iterator interruptible 2008-01-17 23:46:56 +01:00
Patrick Mezard
77bf6d76c9 convert: fix cross-branches subversion revisions handling
The "one revision belongs to one branch" assumptions is relaxed. Branch
revisions are parsed down to the first branch copy encountered, older history
is skipped. It means the conversion is still not satisfying when dealing with
branches overwriting themselves. This issue already existed in the previous
version.
2008-01-17 23:46:56 +01:00
Patrick Mezard
5811ccd7bf convert: fix parents of last fetched svn revision 2008-01-01 23:57:20 +01:00
Patrick Mezard
10ec00ef1b convert: don't scan directories on property changes 2008-01-17 23:46:56 +01:00
Edouard Gomez
a51d1ef742 convert: separate trunk detection from branch layout detection
In some subversion repositories, trunk is present but no branches
are used. The current code is assuming that both trunk and branches
must exist before adding trunk's head to the heads list.

It's just better to separate the branch layout stuff from the trunk one.
2008-01-05 01:51:21 +01:00
Shun-ichi GOTO
478c0b9176 Use util.normpath() instead of direct path string operation.
This change is intended to allow hooking normpath() by win32mbcs
extension for MBCS support.
2008-01-09 21:30:13 +09:00
Shun-ichi GOTO
3dbc9b07a9 svn: fix copy exception 2008-01-11 14:06:05 -06:00
Maxim Dounin
fc8b71e851 convert: add commandline.xargs(), use it in svn_sink class
Introduce commandline.xargs() to limit argument list with respect
to ARG_MAX bytes. If no ARG_MAX information available - use POSIX
required minimum of 4096 bytes.

Under Windows, while actual argument list length is limited to 32k,
shells impose their own limits on command line length, down to 2047 bytes
for cmd.exe under Windows NT/2k and about 2500 bytes for older 4nt.exe.
See http://support.microsoft.com/kb/830473 for details about cmd.exe
limitations.

Since ARG_MAX is limit for argument list and environment, we reserve half
of it and one byte for environment variables. This way with default ARG_MAX
(4096 bytes) we get value 2047 bytes which is OK for Windows too.
2008-01-11 06:07:43 +03:00
Shun-ichi GOTO
df3f37e771 convert: Fix bug of limit_arglist() loosing file on limit boundary. 2008-01-05 11:46:00 +09:00
Shun-ichi GOTO
05e81b7348 convert: Accept local path on win32. 2008-01-03 06:25:30 +09:00
Shun-ichi GOTO
41dab6891f convert: svn_sink: workaround of command line size limitation on win32.
On win32, the command line arguments seems to be limited about 2400
bytes.  So 'add', 'delete', 'propget' and 'propdel' operations are
called several times within this limitation.  And also 'commit'
operation is changed to be called without passing target files not to
exceeds this limitation because it cannot be a separated like other
operations above.
2008-01-03 06:25:30 +09:00
Shun-ichi GOTO
85f8bf0d61 convert: svn_sink: specify encoding of message file explicitly on commit. 2008-01-03 06:25:30 +09:00
Thomas Arendsen Hein
347da85c36 Removed tabs and trailing whitespace in python files 2007-12-29 19:49:48 +01:00
Matt Mackall
ab5d78ce60 convert/svn: use util.set_flags 2007-12-27 22:29:17 -06:00
Maxim Dounin
54de122616 convert: svn-sink: copy and set properties after adding dirs/files
We can't store properties for files we haven't added to repo. Similarly,
we can't copy file to directory we haven't added to svn yet. Remember
needed changes and apply them in putcommit().
2007-12-27 03:14:46 +03:00
David J. Mellor
b1df375d09 convert: fix SVN date parser dropping the final whole second digit 2007-12-06 13:10:25 -08:00
Bryan O'Sullivan
d98a355588 Merge with stable 2007-12-06 13:11:36 -08:00
Bryan O'Sullivan
eff109c7b0 convert: tell the source repository when a rev has been converted
This lets us roundtrip changes between svn and hg.
2007-11-26 17:23:20 -08:00
Patrick Mezard
930b69add7 convert: add directories to subversion from root to leaves 2007-11-17 18:41:31 +01:00
Patrick Mezard
12b8219be3 convert: force svn:executable when execute-bit is not supported
The util.is_exec fallback would be to ask subversion for the current value of svn:executable. Setting it directly is just simpler.
2007-11-11 19:34:00 +01:00
Patrick Mezard
44e6544bec convert: fix svn file:// URL generation under Windows 2007-11-11 14:17:30 +01:00
Alexis S. L. Carvalho
2e160ca8ff merge with crew-stable 2007-11-09 21:24:25 -02:00
Bryan O'Sullivan
68c398d741 convert: add support for Subversion as a sink 2007-11-07 18:26:59 -08:00
Bryan O'Sullivan
bb3b51ecf1 convert: iterate 2007-11-07 17:07:14 -08:00
Bryan O'Sullivan
857e67d5db convert: abstract map files into a class 2007-11-07 17:06:02 -08:00
Alexis S. L. Carvalho
fe9d865e0d convert: display all errors if we couldn't open the source repo
This should give the user a better hint of what's going wrong.

Improve some error messages.  In particular, mention "CVS checkout" instead
of "CVS repo".

Fixes issue822 and issue826.
2007-11-09 20:21:35 -02:00