Svn log - svn: '.' is not a working copy

荒凉一梦 提交于 2019-12-22 04:42:15

问题


I'm getting "svn: '.' is not a working copy" when i use the svn log command.

I know that i need a working copy for the log command to work but can this be done directly on a repository?

My goal is to display the information (change history) of a repository. I think updating the working copy whenever i need the log information is not a good solution.

Is there an alternative solution to this or updating a working copy every time i need to log is the only way to go?

Thanks in advance.


回答1:


Try svn log [repository_url]

That will get the log of a particular repository rather than the local, checked-out repository.

See this documentation.




回答2:


Use svnlook log <repos_path>.




回答3:


If you don't want to supply the full URL, but you DO have a working copy handy, you can also specify that you want the HEAD revision in the repository:

svn log -r HEAD:1

The default when you omit the -r is as if you had specified BASE:1 which will only give you changes up to the latest revision pulled down into the working copy.



来源:https://stackoverflow.com/questions/2729556/svn-log-svn-is-not-a-working-copy

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!