aboutsummaryrefslogtreecommitdiffstats
path: root/src/ruleparser.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Prefix rules should keep spaces if they are part of the ruleManuel Naranjo2012-08-071-1/+1
| | | | | | | | This patch fixes a small bug with prefix rules where a prefix like: prefix I\ Am\ A\ Very\ Ugly\ Path/ will not match as the match was made against \S and not .* making the spaces not part of the match. Signed-off-by: Manuel Naranjo <manuel@evolution.com>
* Properly expand multiple variables in the same line.Modestas Vainius2011-05-281-1/+1
| | | | | | | When were two or more different variables in the same line, ruleparser used to expand the first one and replace *all* variables (since all variables are matches of variableLine regexp) with that expanded value. The corrent way is to replace that exact variable reference with the expanded value.
* Merge commit 'refs/merge-requests/12' of git://gitorious.org/svn2git/svn2git ↵Torgny Nyblom2011-05-081-0/+60
|\ | | | | | | | | | | | | into merge-requests/12 Conflicts: src/ruleparser.cpp
| * Support substitutions for repository/branch names.Modestas Vainius2011-04-241-0/+60
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds support for 's///' style substitutions for the repository/branch names in the match rulesets. Useful when e.g. eliminating characters not supported in git branch names. Syntax: match /... repository some_repo substitute repository s/pattern/replacement/ branch some_branch substitute branch s/pattern/replacement/ end match
* | Support 'description' field in the create repository rule.Modestas Vainius2011-04-241-0/+4
|/ | | | Its value is used to fill in repository/description file used by gitweb.
* Add support for default values in variable substitutions.Nicolás Alvarez2011-04-111-4/+12
| | | | | | If there is no variable 'foo' set, ${foo} exits with a fatal error. With this patch, you can use ${foo|sometext}, which will substitute to 'sometext' if the variable 'foo' isn't set. The default text may be empty.
* Limit variable names to letters, numbers and underscores.Nicolás Alvarez2011-04-111-2/+4
| | | | | | | The parser used to allow any non-whitespace character, which could cause problems in practice. For example, you could create a variable with } or = in the name, or a character we may want to use in a syntax extension later.
* Be more clear about what are warningsTorgny Nyblom2010-12-161-2/+2
|
* Add an option to print some stats after a run.Torgny Nyblom2010-12-041-0/+88
|
* Allow more then one variable to be used on a line.Torgny Nyblom2010-11-301-2/+1
|
* Fix issue with variables not being defined when reading include filesTorgny Nyblom2010-11-011-5/+3
|
* Fix filename and linenumber for included rulefiles.Torgny Nyblom2010-10-261-123/+115
|
* Allow files to be matchedTorgny Nyblom2010-10-081-2/+0
|
* Allow more then one rule file to be used in a single run.Torgny Nyblom2010-09-291-0/+35
|
* const++Torgny Nyblom2010-09-291-2/+2
|
* Die when a rule file contains an invalid regexpTorgny Nyblom2010-09-291-0/+4
|
* Unify debug messages and Match structsTorgny Nyblom2010-09-281-1/+3
|
* Add posibility to use variables in rule filesTorgny Nyblom2010-09-101-0/+15
| | | | | "declare var=value" now "${var}" in any line will be replaced by "value"
* Make it possible to use "include file" for including the rules in "file".Torgny Nyblom2010-09-091-15/+42
|
* Merge branch 'master' of git://gitorious.org/svn2git/svn2gitRaja R Harinath2010-08-241-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | The conflict was mainly around two different approaches to fixing the linear commitMarks issue. The precise tracking of commit marks per branch is better, and that's how I resolved the merge conflict. While at it, I also removed the "revision-*" files, since the "log-*" files already have the same information, and the branch information too. Conflicts: src/repository.cpp src/repository.h
| * error message and exit when rules file cannot be readMarc Guenther2010-04-161-1/+1
| |
* | Provide a way to merge repositoriesRaja R Harinath2010-07-221-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Suppose you have multiple repositories in SVN that you want to merge into a single one in GIT, it can get very messy to handle all the special-case rules. Instead, we introduce a new "forwarding repository" concept, which looks like repository subordinate repository unified prefix foo/ end repository This forwards all commits on the "subordinate" SVN tree to the "unified" GIT tree, with each file prefixed with "foo/".
* | clear out a local that is re-usedRaja R Harinath2010-07-221-0/+5
|/
* Fix logical error in last commit. There was no slash added betweenTorgny Nyblom2010-04-131-2/+2
| | | | prefix and path under certain conditions.
* Fix logical error (deleted paths was ignored)Torgny Nyblom2010-04-121-1/+3
| | | | 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-121-3/+5
| | | | correct :))
* Add support for a new rule tag:Torgny Nyblom2010-03-151-0/+4
| | | | | | | | | | | | | | | | | 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
|
* Change license on files where I am copyright holder to GPLv3.Thiago Macieira2010-03-031-1/+1
| | | | | 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.
* Add support for annotated tagsThiago Macieira2009-06-081-0/+4
|
* Reintroduce the recurse rule. It's useful if you have a catch-all ignore rule.Thiago Macieira2007-12-271-0/+2
|
* Remove the recurse ruleThiago Macieira2007-12-241-2/+0
|
* This should be a spaceThiago Macieira2007-12-241-1/+1
|
* Beautify the rule debug outputThiago Macieira2007-12-241-0/+9
|
* Refactor and add the ability to recurse into certain subdirsThiago Macieira2007-12-241-0/+14
|
* remove the source branch in the rulesThiago Macieira2007-12-241-2/+1
|
* Support for pathless rulesThiago Macieira2007-12-241-4/+0
|
* Add some more line number informationThiago Macieira2007-12-241-0/+2
|
* add some more information to the outputThiago Macieira2007-12-241-1/+4
|
* Make it a fatal error to have a malformed line in the rules fileThiago Macieira2007-12-241-2/+1
|
* Add support for min/max revision rangesThiago Macieira2007-12-241-0/+8
|
* Allow repository names with dashes tooThiago Macieira2007-12-241-2/+2
|
* Fix rule parsing again: cap(0) is the entire matchThiago Macieira2007-12-231-18/+18
|
* Parse rules correctlyThiago Macieira2007-12-231-3/+8
|
* Add missing functionThiago Macieira2007-12-231-0/+4
|
* Initial versionThiago Macieira2007-12-231-0/+111