Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7504109
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T21:27:44+00:00 2026-05-29T21:27:44+00:00

I have a user that has, up until today, been called foo.bar . Now

  • 0

I have a user that has, up until today, been called foo.bar. Now that user will be known as fb instead from here on. But I would like to update all the old commits to reflect this username instead of the old one for statistical reasons etc. How can this be done?

I know about the syntax

svn propset --revprop -r revision_number svn:author your_username

But that would require a lot of manual labor. Is there an existing function or script that just takes the name to replace and the name to replace it with?

Update:

Here is a small script I made to handle this since I will be doing this on a lot of repos for a lot of users 🙂
Just run it in the checked out repository folder of your choice. Note that error handling is at a minimum in the script.

https://github.com/inquam/svn-rename-author

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T21:27:46+00:00Added an answer on May 29, 2026 at 9:27 pm

    You can build a command to get the revisions in the log which old_username has committed with:

    svn log | grep "^r[0-9]* | old_username |" | cut -c 2- | awk '{print $1}'
    

    This command gets the logs, searches for lines that appear at the start of each revision, drops the first character (i.e. the r) from those lines and then takes the first remaining part of the line, which is the revision.

    You can use this information in a variety of ways. In bash you could make it produce the sequence of svn propset commands with:

    for f in `svn log | grep "^r[0-9]* | old_username |" | cut -c 2- | awk '{print $1}'`
    do
    svn propset --revprop -r $f svn:author your_username
    done
    

    which iterates over the values created by the first expression (now in backquotes) and uses those values for your svn propset command, replacing the $f with the appropriate revision value.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Say I have a model called User that has the following parameters: favorite_color, favorite_animal,
I have a process that will be called rather frequently from cron to read
I have a user control that has a few public properties, one is an
I have a User table that has all of their avatars saved in an
I have a user table 'users' that has fields like: id first_name last_name ...
I have a database with user 'dbo' that has a login name domain\xzy. How
I have a user table in my mysql database that has a password column.
I have a user Sql Authentication account that has remote access to my database
I have an abstract user control(baseModule) that has a property that I plan on
In MySQL, I have a user with a password that has a < in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.