How to get svn:mergeinfo property value in a script

aswini
aswini
Hi,  I am new to SVN and I want to read the svn:mergeinfo property of the trunk in a unix script using the svn command line utilities.  I tried different ways, but unable to get the result. It works only when I have a local copy of the trunk directory and run the command svn propget svn:mergeinfo . Is it possible to get the value of the property from the repository directly?    Thanks

Last updated

philip
philip
This works:    svn propget svn:mergeinfo http://svn.apache.org/repos/asf/subversion/trunk    Are you writing a pre-commit? If so then you probably want to use svnlook:    svnlook propget -t $TXN $REPO svn:mergeinfo trunk
aswini
aswini
philip;130687This works:    svn propget svn:mergeinfo http://svn.apache.org/repos/asf/subversion/trunk    Are you writing a pre-commit? If so then you probably want to use svnlook:    svnlook propget -t $TXN $REPO svn:mergeinfo trunk
     Thanks Philip.. it works

1-3 of 3

Reply to this discussion

You cannot edit posts or make replies: You should be logged in before you can post.