Re: get a list of CVS users

CV Software <[email protected]>
Newsgroups gmane.comp.version-control.subversion.cvs2svn.user
Message-ID <[email protected]>
olli's command line + remove duplicates:
egrep -ahR '^date.*author' cvsroot | awk '/state Exp/ {print $4}' | sort | uniq

On Wed, Aug 18, 2010 at 10:27 AM, CV Software <[email protected]> wrote:
> Hi olli,
>
> Thanks a lot for your very useful command line and script.
>
> Cedric
>
> On Wed, Aug 18, 2010 at 10:04 AM, olli hauer <[email protected]> wrote:
>> On 2010-08-18 09:16, CV Software wrote:
>>> Hi Michael,
>>>
>>> Thank you for your answer.
>>>
>>> Are you aware of any other way of getting the list of all CVS users?
>>>
>>> Cedric
>>>
>>
>> I got all my users this way
>>
>> egrep -ahR '^date.*author' $CVSRepo | awk '/state Exp/ {print $4}'
>>
>>
>> Maybe the next hint can slip into the cvs2svn docs.
>>
>> If you have many repos to convert and additional want to transform
>> the authors it is handy to define the mapping in a dedicated file.
>>
>>
>> file: option_CVSRepo_abc
>> ==============================
>> author_transform_from_file=eval(open("author_transforms").read())
>>
>> ctx.output_option = NewRepositoryOutputOption(
>>    r'/path/to/new/svn/repo',
>>    fs_type='fsfs',
>> #    author_transforms=author_transforms,
>>    author_transforms=author_transform_from_file,
>>    )
>>
>> file: author_transforms
>> ==============================
>> {
>>  'a1' : 'author1',
>>  'a2' : 'author2',
>> ...
>> }
>>
>> --
>> olli
>>
>

------------------------------------------------------
http://cvs2svn.tigris.org/ds/viewMessage.do?dsForumId=1670&dsMessageId=2648163

To unsubscribe from this discussion, e-mail: [[email protected]].
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.