[prev in list] [next in list] [prev in thread] [next in thread] 

List:       subversion-users
Subject:    Re: change users in repository
From:       Brian Harris <medotin () gmail ! com>
Date:       2009-01-30 17:36:40
Message-ID: 4e7740070901300936w70954ff9n4f77c24e64bc30e3 () mail ! gmail ! com
[Download RAW message or body]

Yep, sorry bout that, I was worried that the high level script would only be
non-obvious to me  :)

I found a script that does svn log parsing, so I simply modified it to
perform the propset.  You can my starting point script here:
http://www.brunningonline.net/simon/blog/svnlog.html

Thanks again.

On Thu, Jan 29, 2009 at 7:03 PM, Daniel Becroft <
Daniel.Becroft@supercorp.com.au> wrote:

> Remember to keep replies on list.
> 
> Hi,
> 
> At a high level, it would be something like:
> 
> Retrieve a list all the revisions:
> svn log --quiet <URL>
> 
> Then do something like:
> 
> for each revision:
> set the svn:author property on the revision (svn propset)
> 
> Cheers,
> Daniel.
> 
> ------------------------------
> *From:* Brian Harris [mailto:medotin@gmail.com]
> *Sent:* Friday, January 30, 2009 12:03 PM
> *To:* Daniel Becroft
> *Subject:* Re: change users in repository
> 
> Interesting...what would the script look like, at a high level?
> 
> On Thu, Jan 29, 2009 at 6:00 PM, Daniel Becroft <
> Daniel.Becroft@supercorp.com.au> wrote:
> 
> > Hi,
> > 
> > You should be able to write a simple script to modify the svn:author
> > revision property for all 'incorrect' revisions. If your repository is
> > large, this might be quicker than a dump/load.
> > 
> > Cheers,
> > Daniel B.
> > 
> > ------------------------------
> > *From:* Brian Harris [mailto:medotin@gmail.com]
> > *Sent:* Friday, January 30, 2009 10:55 AM
> > *To:* users@subversion.tigris.org
> > *Subject:* Re: change users in repository
> > 
> > Suggestions still welcome, but it looks like I can do this with svn
> > dump and sed.
> > Thanks.
> > 
> > On Thu, Jan 29, 2009 at 5:43 PM, Brian Harris <medotin@gmail.com> wrote:
> > 
> > > Our svn 1.5 repo is filled with commits by usernames with @DOMAIN.COMappended \
> > > on the end -- this is because the apache configuration we were using assigned \
> > > these username suffixes.  We are switching to a different authentication method \
> > > that will not have @DOMAIN.COM on the end of the usernames, so I'd like to \
> > > retroactively remove this suffix from the historical commits so we won't have \
> > > multiple usernames for the same person, IE change all 'joe@DOMAIN.COM' \
> > > usernames on historical commits to 'joe'. 
> > > Is this possible?
> > > Thanks, Brian
> > > 
> > 
> > 
> 

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1075614

To unsubscribe from this discussion, e-mail: \
[users-unsubscribe@subversion.tigris.org].


[Attachment #3 (text/html)]

Yep, sorry bout that, I was worried that the high level script would only be \
non-obvious to me&nbsp; :)<br><br>I found a script that does svn log parsing, so I \
simply modified it to perform the propset.&nbsp; You can my starting point script \
here: <a href="http://www.brunningonline.net/simon/blog/svnlog.html">http://www.brunningonline.net/simon/blog/svnlog.html</a><br>
 <br>Thanks again.<br><br><div class="gmail_quote">On Thu, Jan 29, 2009 at 7:03 PM, \
Daniel Becroft <span dir="ltr">&lt;<a \
href="mailto:Daniel.Becroft@supercorp.com.au">Daniel.Becroft@supercorp.com.au</a>&gt;</span> \
wrote:<br> <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, \
204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">



<div>
<div dir="ltr" align="left"><font size="2" color="#0000ff" \
face="Arial"><span>Remember to keep replies on list.</span></font></div> <div \
dir="ltr" align="left"><font size="2" color="#0000ff" \
face="Arial"><span></span></font>&nbsp;</div> <div dir="ltr" align="left"><font \
size="2" color="#0000ff" face="Arial"><span>Hi,</span></font></div> <div dir="ltr" \
align="left"><font size="2" color="#0000ff" \
face="Arial"><span></span></font>&nbsp;</div> <div dir="ltr" align="left"><font \
size="2" color="#0000ff" face="Arial"><span>At a high level, it would be something  \
like:</span></font></div> <div dir="ltr" align="left"><font size="2" color="#0000ff" \
face="Arial"><span></span></font>&nbsp;</div> <div dir="ltr" align="left"><font \
size="2" color="#0000ff" face="Arial"><span>Retrieve a list all the \
revisions:</span></font></div> <div dir="ltr" align="left"><font size="2" \
color="#0000ff" face="Arial"><span>&nbsp;&nbsp;&nbsp; svn log --quiet  \
&lt;URL&gt;</span></font></div> <div dir="ltr" align="left"><font size="2" \
color="#0000ff" face="Arial"><span></span></font>&nbsp;</div> <div dir="ltr" \
align="left"><font size="2" color="#0000ff" face="Arial"><span>Then do something \
like:</span></font></div> <div dir="ltr" align="left"><font size="2" color="#0000ff" \
face="Arial"><span></span></font>&nbsp;</div> <div dir="ltr" align="left"><font \
size="2" color="#0000ff" face="Arial"><span>for each revision:</span></font></div> \
<div dir="ltr" align="left"><font size="2" color="#0000ff" \
face="Arial"><span>&nbsp;&nbsp;&nbsp; set the svn:author property on the  revision \
(svn propset)</span></font></div> <div dir="ltr" align="left"><font size="2" \
color="#0000ff" face="Arial"><span></span></font>&nbsp;</div> <div dir="ltr" \
align="left"><font size="2" color="#0000ff" \
face="Arial"><span>Cheers,</span></font></div> <div dir="ltr" align="left"><font \
size="2" color="#0000ff" face="Arial"><span>Daniel.</span></font></div><br> \
<blockquote style="border-left: 2px solid rgb(0, 0, 255); padding-left: 5px; \
margin-left: 5px; margin-right: 0px;">  <div dir="ltr" lang="en-us" align="left">
  <hr>
  <font size="2" face="Tahoma"><div class="Ih2E3d"><b>From:</b> Brian Harris \
[mailto:<a href="mailto:medotin@gmail.com" target="_blank">medotin@gmail.com</a>]   \
<br></div><b>Sent:</b> Friday, January 30, 2009 12:03 PM<br><b>To:</b> Daniel   \
Becroft<div class="Ih2E3d"><br><b>Subject:</b> Re: change users in \
repository<br></div></font><br></div><div class="Ih2E3d">  \
<div></div>Interesting...what would the script look like, at a high   level?<br><br>
  <div class="gmail_quote">On Thu, Jan 29, 2009 at 6:00 PM, Daniel Becroft <span \
dir="ltr">&lt;<a href="mailto:Daniel.Becroft@supercorp.com.au" \
target="_blank">Daniel.Becroft@supercorp.com.au</a>&gt;</span>   wrote:<br>
  <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); \
margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">  <div>
    <div dir="ltr" align="left"><span><font size="2" color="#0000ff" \
face="Arial">Hi,</font></span></div>  <div dir="ltr" align="left"><span><font \
size="2" color="#0000ff" face="Arial"></font></span>&nbsp;</div>  <div dir="ltr" \
align="left"><span><font size="2" color="#0000ff" face="Arial">You   should be able \
to write a simple script to modify the svn:author revision   property for all \
&#39;incorrect&#39; revisions. If your repository is large, this   might be quicker \
than a dump/load. </font></span></div>  <div dir="ltr" align="left"><span><font \
size="2" color="#0000ff" face="Arial"></font></span>&nbsp;</div>  <div dir="ltr" \
align="left"><span><font size="2" color="#0000ff" \
face="Arial">Cheers,</font></span></div>  <div dir="ltr" align="left"><span><font \
size="2" color="#0000ff" face="Arial">Daniel   B.</font></span></div><br>
    <blockquote dir="ltr" style="border-left: 2px solid rgb(0, 0, 255); padding-left: \
5px; margin-left: 5px; margin-right: 0px;">  <div dir="ltr" lang="en-us" \
align="left">  <hr>
      <font size="2" face="Tahoma"><b>From:</b> Brian Harris [mailto:<a \
href="mailto:medotin@gmail.com" target="_blank">medotin@gmail.com</a>]   \
<br><b>Sent:</b> Friday, January 30, 2009 10:55 AM<br><b>To:</b> <a \
href="mailto:users@subversion.tigris.org" \
target="_blank">users@subversion.tigris.org</a><br><b>Subject:</b> Re:   change users \
in repository<br></font><br></div>  <div>
      <div></div>
      <div>
      <div></div>Suggestions still welcome, but it looks like I can do this with 
      svn dump and sed. 
      <div><br></div>
      <div>Thanks.<br><br>
      <div class="gmail_quote">On Thu, Jan 29, 2009 at 5:43 PM, Brian Harris <span \
dir="ltr">&lt;<a href="mailto:medotin@gmail.com" \
                target="_blank">medotin@gmail.com</a>&gt;</span> wrote:<br>
      <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, \
                204); margin: 0px 0px 0px 0.8ex; padding-left: 1ex;">Our 
        svn 1.5 repo is filled with commits by usernames with @<a \
                href="http://DOMAIN.COM" target="_blank">DOMAIN.COM</a> appended on \
                the 
        end -- this is because the apache configuration we were using assigned 
        these username suffixes. &nbsp;We are switching to a different 
        authentication method that will not have @<a href="http://DOMAIN.COM" \
                target="_blank">DOMAIN.COM</a> on the end of the usernames, so \
                I&#39;d like to 
        retroactively remove this suffix from the historical commits so we won&#39;t 
        have multiple usernames for the same person, IE change all&nbsp;&#39;<a \
href="mailto:joe@DOMAIN.COM" target="_blank">joe@DOMAIN.COM</a>&#39; usernames   on \
historical commits to&nbsp;&#39;joe&#39;.   <div><br></div>
        <div>Is this possible?</div>
        <div>Thanks, 
    Brian</div></blockquote></div><br></div></div></div></blockquote></div></blockquote></div><br></div></blockquote></div>
 </blockquote></div><br>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic