[LLVMdev] How to make release branch available in git (topic changed)

Tobias Grosser
Thu, 10 Mar 2011 13:54:16 -0000

On 03/10/2011 02:53 AM, Anton Korobeynikov wrote:
> Hi Tobias,
>
>> The following expression e.g.
>>
>> /^.*(?<!trunk|RELEASE_2.).$/m
>>
>> uses lookbehind to matches on:
> Thanks. Clever trick, but...
>
> Variable length lookbehind not implemented in regex
> m/^.*(?<!trunk|RELEASE_2.).$/ at /usr/lib/git-core/git-svn line 4078.
>
> :(

I got a new one. Today even with working test case:

$cat in.txt
tags/SVA
tags/eh-experimental
tags/ggreif
tags/non-call-eh
tags/RELEASE_28 at 115869
branches/Apple
branches/PowerPC-A
branches/PowerPC-B
trunk
tags/RELEASE_28
tags/RELEASE_29
tags/RELEASE_27

$cat rev_match
#!/usr/bin/perl -wn
print if /.(?<!trunk)(?<!RELEASE_27)$/;

$./rev_match in.txt
tags/SVA
tags/eh-experimental
tags/ggreif
tags/non-call-eh
tags/RELEASE_28 at 115869
branches/Apple
branches/PowerPC-A
branches/PowerPC-B
tags/RELEASE_28
tags/RELEASE_29

Cheers
Tobi
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: in.txt
URL:
<http://lists.llvm.org/pipermail/llvm-dev/attachments/20110310/0373cbd5/attachment.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: rev_match
URL:
<http://lists.llvm.org/pipermail/llvm-dev/attachments/20110310/0373cbd5/attachment.ksh>