Questions tagged [svnlook]

svnlook as an administrative tool for subversion

svnlook is a tool provided by for examining the various revisions and transactions, typically used by the repository for reporting the changes that are about to be committed (in the case of the pre-commit hook) or that were just committed (in the case of the post-commit hook) to the repository.

svnlook on SVN-Book

27 questions
12
votes
2 answers

Detecting branch reintegration or merge in pre-commit script

Within a pre-commit script, is it possible (and if so, how) to identify commits stemming from an svn merge? svnlook changed ... shows files that have changed, but does not differentiate between merges and manual edits. Ideally, I would also like to…
Shawn Chin
  • 84,080
  • 19
  • 162
  • 191
8
votes
1 answer

SVN command line: svnlook history mypath, can't open file

I use this command to display the history of commits. svnlook history -r 2 mypath and I get this: svnlook: Can't open file 'mypath/format': No such file or directory I'm sure that "mypath" is correct. I also tried going into deeper directories. I…
Ska
  • 6,658
  • 14
  • 53
  • 74
3
votes
1 answer

Cyrillic support in svn's svnlook result

I've trying to get list of updated/added/deleted files from SVN by svnlook using: /usr/bin/svnlook changed -r 77 /var/lib/svn/epsilon/decorhouse but I got some strange thing: A …
Epsiloncool
  • 1,435
  • 16
  • 39
3
votes
3 answers

Getting log message from svnlook via windows batch

I try to prepare a post-commit hook for my svn repository. Therefore i need the log message from the last commit which I get with the command svnlook log -r %REV% %REPOS%. Filling the snippet with the appropriate params I get the following multline…
Cornertrap
  • 73
  • 1
  • 5
2
votes
2 answers

batch FOR /F and space in file/pathname and usage of token?

I am using a batch file to update only those files that have changed in my SVN repository. This is a part of my batch file: SET CHANGES=svnlook changed c:\myrepository FOR /F "usebackq tokens=2" %%a IN (`%CHANGES%`) DO (echo %%a) I only get dok…
EOB
  • 2,975
  • 17
  • 43
  • 70
2
votes
2 answers

Does "svnlook propget" work?

Okay take a look at the following: 1: $ svnlook changed -r2 svn_repos/ _U trunk/ 2: $ svnlook proplist -r2 -v svn_repos/ trunk foo : bar 3: $ svnlook propget -r2 svn_repos/ foo trunk 4: $ svnlook propget -r2 svn_repos/ fooo…
David W.
  • 105,218
  • 39
  • 216
  • 337
2
votes
0 answers

Pre-commit hook. Svnlook can't find the path ".tmp\format"

I've made pre-commit.bat script, but it doesn't work properly. I want it to prevent sending commits without proper message("Ticket xxxxx"). Here's the code: set REPOS=%1 set TXN=%2 svnlook log %REPOS% -t %TXN% | findstr /r "^Ticket [0-9]{5}"…
2
votes
0 answers

SvnLook with unicode Ouptut

On Windows Vista, with Subversion 1.6.12 setup throught VisualSvn Server 2.1.3, I have the following output Commentaires AccentuÚs. Instead of Commentaires Accentués. with the command (in a dos or powershell console in admin mode) svnlook log…
PlageMan
  • 708
  • 7
  • 21
2
votes
2 answers

How to use svnlook in svn to search changed items

Could you please guide me on how svnlook is working below. I want to include this in a hook to prevent commits in a tag under /tags: $SVNLOOK changed -t "$TXN" "$REPOS" | grep "^U\W.*\/tags\/" && /bin/echo "Cannot commit to tags!" 1>&2 && exit 1
Kaku
  • 119
  • 2
  • 11
1
vote
3 answers

Determining base revision of transaction in pre-commit

I am writing a pre-commit hook where I would like to enforce some rule based on the content of a file before the transaction. Therefore, when a transaction begins, I would like to svnlook cat the contents of any file marked "U", "UU", or "D" without…
tuckermi
  • 839
  • 6
  • 17
1
vote
2 answers

Can "svnlook cat" be forced to output properly formatted text during a commit transaction?

In writing a pre-commit hook for subversion, I am in a situation where my call to svnlook as MESSAGE=`svnlook cat -t $TXN $REPOS $FILE` results in a returned value which consists of a single, continuous line instead of the properly formatted…
panagioti
  • 426
  • 4
  • 14
1
vote
1 answer

How to get Line numbers where content added, deleted or modified in svnlook ? (hooking)

I have created pre-commit hook and post-commit hook for visualSVN using c# for windows, but in pre-commit hook I also required to get the line numbers for each updated file where content got changed (added, deleted or modified.). e.g. content of…
BhushanK
  • 1,205
  • 6
  • 23
  • 39
1
vote
1 answer

svnlook cat :: batch script to limit the commit size to 10MB

I am working to create a pre-commit hook script which will restrict users (developer) to 10MB commit. So this will help to reduce the repository size. Below is the script which needs to be run on windows server using subversion 1.8. @echo off …
1
vote
0 answers

SVN pre commit hook on windows not running as expected

I am trying to write a pre-commit hook .bat script for windows. Code is pasted below. It runs file till the line where I have written "ISSUE HERE" below. What I am trying to do in a is to check if there is any content in a file which is being…
always
  • 145
  • 3
  • 12
1
vote
1 answer

Batch script to search for a particular string in SVN revision file

I need some help with windows batch script What am i trying to achieve: retrieve the youngest (last) revision from repository search for a particular string in that file if string exists, load a web page What i have tried: set REVNO=$(svnlook…
Boris Mocialov
  • 3,439
  • 2
  • 28
  • 55
1
2