aboutsummaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Properly implement the 16-parent limit, rather than conservatively stopping atRaja R Harinath2010-07-051-8/+8
| | | | 15 commit parents.
* Don't skip same branch revisions when inferring multiple merge parents.Raja R Harinath2010-07-011-6/+2
| | | | | Experience with the mono tree shows that it isn't too annoying, and there might be some useful history hidden in there.
* Infer some copy sources as additional parentsRaja R Harinath2010-07-013-54/+130
| | | | | | | | | | | | | | We use a literal meaning of multiple commit parents to allow us to infer some partial repository copying as merges. This helps us 1) track history despite some directory reorganization 2) link subset commits to parents 3) infer some merges which were achieved by overwriting a subtree with contents from another branch This seems to work well enough even with cvs2svn monster commits. The heuristics have been tuned by gut feel to work reasonably well with mono's SVN repository. They can definitely be improved.
* Exit with EXIT_FAILURE if svn.exportRevision() failedRaja R Harinath2010-07-011-4/+8
|
* Handle same branch copies using createBranch to allow reseatingRaja R Harinath2010-07-011-12/+12
| | | | branch tip to an older revision.
* Add --force to 'git fast-import' command-lineRaja R Harinath2010-06-211-1/+1
| | | | | | | | | | | | | Now that we support arbitrarily reseating branches, the branch can be reset to older SVN revisions or derive from a different branch point. The "only fast-forward" rule of git branch imports gets in our way. Note that the application of the rule is fairly unpredictable since the checking happens only at 'checkpoint's. Let's trust our handling of SVN history and override the sanity-check. Note that we don't lose any information since reseated branches are snapshotted before reset.
* Fix type errorRaja R Harinath2010-06-211-1/+1
|
* Improve progess logRaja R Harinath2010-06-201-12/+24
| | | | | | | | | | | | | | | | | | | Make the progress log for commit and branch creation more uniform and machine parse-able. Add 'mark' information to log so that it can be cross-referenced against the fast-import marks file. The log-* files now have enough information in a convenient enough form that the export can eventually be made fully resumable and incremental. The format is essentially progress SVN r<svn-rev> branch <git-branch> = (:<mark> | <other-git-branch>) with a possible trailing # comment. Any line not matching this can be The incremental mode would prime the internal structures with if (<mark>) repository->commitMarks[<svn-rev>] = <mark>; repository->branches[<git-branch>].commits.append(<svn-rev>);
* Track commits per-branchRaja R Harinath2010-06-202-13/+17
| | | | | | | | | | | | Previously, all the SVN commits were tracked in a linear array, and we searched for nearest commits in that array. However, SVN history is not linear, and the 'next smallest commit' search was picking the wrong commit. I've moved the commit array into the 'Branch' structure. As a minor subtlety, the branch creation revision is also noted in the 'commitMarks' structure, by copying the commit mark of the branch point. We need this to ensure that the commits array is strictly non-decreasing.
* Improve determination of branch pointRaja R Harinath2010-06-191-5/+8
| | | | | | | | | | | | This fixes the logic of commit 209e6ce4ddf114494d6d72455690af819dcbf18c qLowerBound doesn't have the desired semantics -- it returns the position of the first item which is not smaller than the search key. The intended semantics seems to be to find the given key, or the next smallest one. This is almost given by qUpperBound -- it returns an element one past the desired result. I've also added some additional debugging code to help debug this.
* Store marks to file so that the ProcessCache system worksRaja R Harinath2010-06-191-2/+10
| | | | | | | | | | Branches and marks are now long-lived. The marks have to survive even if the fast-import process goes away. So, use the --import- and --export-marks feature of fast-import to persist marks. These marks are only meant for the duration of this 'svn-all-fast-export' and don't confer any new incremental behaviour. You'll need a mark to SVN commit map for that, at least.
* Fix typoRaja R Harinath2010-06-191-1/+1
|
* Initialize lastmarkRaja R Harinath2010-06-191-1/+1
| | | | Ensure that marks start at 1, now that they're visible in the logs
* Add proper APR_INCLUDE for openSUSEJohannes Obermayr2010-06-191-1/+1
|
* Try and branch from the correct svn revision rather then the last one.Torgny Nyblom2010-05-042-9/+24
|
* Fix svn.replaceTorgny Nyblom2010-05-031-5/+5
|
* Implement the replace node changeset which exists from some repositories ↵Ulrich Spörlein2010-04-291-5/+23
| | | | namely the FreeBSD svn rep
* Split into two rows.Torgny Nyblom2010-04-291-1/+2
|
* Print more info on what is exported whereUlrich Spörlein2010-04-291-3/+3
|
* Merge remote branch 'svn2git/master'Marc Guenther marcguenther@me.com2010-04-142-5/+5
|\
| * Move slash cleaning to a more generic placeTorgny Nyblom2010-04-142-5/+5
| |
* | Merge remote branch 'svn2git/master'Marc Guenther marcguenther@me.com2010-04-142-7/+5
|\ \ | |/ | | | | | | Conflicts: src/svn.cpp
| * Fix logical error in last commit. There was no slash added betweenTorgny Nyblom2010-04-132-7/+5
| | | | | | | | prefix and path under certain conditions.
* | 'prefix' rule didn't allow \1 \2 replacementsMarc Guenther marcguenther@me.com2010-04-141-1/+2
|/
* Oups (use the correct string)Torgny Nyblom2010-04-121-1/+1
|
* Fix logical error (deleted paths was ignored)Torgny Nyblom2010-04-122-2/+7
| | | | Improve the ruleparser so that prefix never starts or ends with a '/'
* Ditch the Rootdir option and add a prefix one instead (Thiago is always ↵Torgny Nyblom2010-04-123-15/+12
| | | | correct :))
* Add support for git-svn author filesSebastian Pipping2010-03-271-1/+8
|
* Add command line option to print what rules are used on each file.Torgny Nyblom2010-03-252-0/+3
|
* Add commandline option for when to flush the commit queue.Torgny Nyblom2010-03-252-1/+2
|
* Add support for a new rule tag:Torgny Nyblom2010-03-153-6/+20
| | | | | | | | | | | | | | | | | rootdir /a/path/ This should be the part of the match that shouldn't be included in the commited path. Ex: match /trunk/kdenetwork/kmail/ rootdir /trunk/kdenetwork/ repository KDE/kdepim branch master end match This would but all matched files/directories under kmail into the repository under the subdir kmail
* Revert half of last commit, only one regexp was duplicate.Torgny Nyblom2010-03-141-2/+4
|
* Remove duplicate regexpTorgny Nyblom2010-03-141-7/+4
|
* Update with vng version; Fix command line parser reporting wrong optionsThomas Zander2010-03-061-3/+5
|
* Change license on files where I am copyright holder to GPLv3.Thiago Macieira2010-03-037-7/+7
| | | | | The GPLv2 is incompatible with the Apache 2.0 License used in the SVN libs. So everyone was using this software under the GPLv3 anyway. Formalise it now.
* make dry-run a command line switch instead of a compile-time switchThomas Zander2009-10-214-43/+43
|
* Replace options with the one from vng and use its options for better usabilityThomas Zander2009-10-217-184/+559
|
* Make passing in a trailing slash not assert.Thomas Zander2009-10-201-1/+4
|
* Add commented out way to compile a dry-run versionThomas Zander2009-10-201-1/+2
|
* Create repos as we go.Thomas Zander2009-10-201-0/+12
| | | | | Instead of failing with an unhelpful error in fast-import we create the repositories we require to import into if they don't exist.
* Don't let me waste 2 hours doing an import if the identity map file wasn't ↵Thiago Macieira2009-07-201-1/+4
| | | | found...
* Add support for annotated tagsThiago Macieira2009-06-086-8/+121
|
* Fix the recursing when the sub-path was modified instead of just addedThiago Macieira2009-06-081-1/+3
|
* Support Qt 4.3 tooThiago Macieira2009-02-201-0/+4
|
* Properly interpret Subversion dates as UTC.Anders Kaseorg2009-01-081-1/+1
| | | | | | | | mktime interprets its input in the local timezone. This can be fixed by using timegm instead of mktime. Signed-off-by: Anders Kaseorg <andersk@mit.edu> Signed-off-by: Thiago Macieira <thiago@kde.org>
* Add a --no-metadata option to suppress the svn info in commit messages.Anders Kaseorg2009-01-082-2/+4
| | | | | Signed-off-by: Anders Kaseorg <andersk@mit.edu> Signed-off-by: Thiago Macieira <thiago@kde.org>
* Read symbolic links correctly.Anders Kaseorg2009-01-081-6/+20
| | | | | | | | ---1257098496-2120511158-1230496052=:2755Symlinks are described in Subversion by a file with propertysvn:special set to “*”, with contents “link <target of symlink>”. We need to strip off the “link ” when exporting to Git. Signed-off-by: Anders Kaseorg <andersk@mit.edu> Signed-off-by: Thiago Macieira <thiago@kde.org>
* Add missing calls to svn_stream_close().Anders Kaseorg2009-01-081-0/+2
| | | | | | | ---1257098496-5312088-1230496020=:2755svn_stream_copy() does not automatically close its streams. (Thatfeature will be added in Subversion 1.6’s svn_stream_copy3().) Signed-off-by: Anders Kaseorg <andersk@mit.edu> Signed-off-by: Thiago Macieira <thiago@kde.org>
* Fix initialization of Repository::lastmark when creating a new transaction.Anders Kaseorg2009-01-081-1/+1
| | | | | Signed-off-by: Anders Kaseorg <andersk@mit.edu> Signed-off-by: Thiago Macieira <thiago@kde.org>
* Fix a bug when committing to two branches of the same repository in the same ↵Thiago Macieira2008-08-262-5/+8
| | | | SVN revision