RE: Trouble excluding a tag using an options file
Peter Shipway <[email protected]>
| Newsgroups | gmane.comp.version-control.subversion.cvs2svn.user |
|---|---|
| Message-ID | <[email protected]> |
Hi There Michael, Thanks for the advice, you are quite right I typed out the line incorrectly, it is: ExcludeRegexpStrategyRule(r'GMWin-dvi-issue-1813*'), Thank you for clearing up the information regarding regular expressions, I tried modifying the line to ExcludeRegexpStrategyRule(r'GMWin-dvi-issue-1813'), and ExcludeRegexpStrategyRule(r'tags/GMWin-dvi-issue-1813'), But cvs2svn is still trying not excluding the tag. -----Original Message----- From: Michael Haggerty [mailto:[email protected]] Sent: Monday, 20 September 2010 2:26 PM To: Peter Shipway Cc: [email protected] Subject: Re: Trouble excluding a tag using an options file On 09/20/2010 02:47 AM, Peter Shipway wrote: > I am trying to exclude a tag using an options file, but I can't seem to > get the correct syntax. > > On pass 16 the cvs2svn outputs the following error: > starting subversion r127 / 36451 > ERROR: Unable to convert a path 'tags/GMWin-dvi-issue-1813' > > I've added the following entry to the options file but it still tries to > convert this tag > ExcludeRegexpStrategyRule(r'GMWin-dvi-issue-1831*'), Well, right off the bat I see two problems: * The patterns needed for ExcludeRegexpStrategyRule() are *regexps* aka regular expressions. To match any string in a regexp, you need to use ".*", not "*". So your pattern will match 'GMWin-dvi-issue-18311111111' but not 'GMWin-dvi-issue-1831-foo-bar'. This is not necessarily a problem in this particular case but you might have made similar mistakes elsewhere. * You've transposed the last two digits: '13' vs '31'. Michael ------------------------------------------------------ http://cvs2svn.tigris.org/ds/viewMessage.do?dsForumId=1670&dsMessageId=2662160 To unsubscribe from this discussion, e-mail: [[email protected]].