Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Find a specific SVN commit by comment and/or author

Tags:

svn

We're 5 people on our project and sometimes we would want to find a specific commit on SVN, like a bug resolution.

Of course we don't know the revision number of the researched commit.

Does someone have an idea to find a commit by comment ?

I think it's possible by parsing svn logs and using regex but I hope there is a better way.

like image 644
Azrael_404 Avatar asked May 30 '16 08:05

Azrael_404


People also ask

How do I see recent commits in svn?

Use the View History option to see the revision information for a project file or folder as it exists in the Subversion repository. In the Solution Explorer, right-click a project file or folder and select View History. The History Viewer retrieves the log messages from the repository and displays them.

Does svn allow editing commit message in history?

By default, the log message property (svn:log) cannot be edited once it is committed. That is because changes to revision properties (of which svn:log is one) cause the property's previous value to be permanently discarded, and Subversion tries to prevent you from doing this accidentally.

How do I commit a svn file in Terminal?

Select any file and/or folders you want to commit, then TortoiseSVN → Commit.... The commit dialog will show you every changed file, including added, deleted and unversioned files. If you don't want a changed file to be committed, just uncheck that file.

What is commit in svn?

svn commit will send any lock tokens that it finds and will release locks on all PATH s committed (recursively) unless --no-unlock is passed. Tip. If you begin a commit and Subversion launches your editor to compose the commit message, you can still abort without committing your changes.


2 Answers

If you prefer the cli, use log --search (see doc)

svn log --search your_comment_fragment
like image 177
Y.N Avatar answered Sep 18 '22 15:09

Y.N


If you're running on a Windows environment you can use Tortoise SVN to search among commit comments, exploiting the Revision Log Dialog.

Search log messages... Search log messages for the text you enter. This searches the log messages that you entered and also the action summaries created by Subversion (shown in the bottom pane). The search is not case sensitive.

If you're running on a Linux environment you can use alternatives like RabbitVCS, which works almost in the same way.

like image 30
abarisone Avatar answered Sep 20 '22 15:09

abarisone