SVN 리포지토리 검색
코드 스 니펫에 대한 SVN 저장소를 검색 할 수있는 좋은 소프트웨어가 있습니까? 'FishEye'를 찾았지만 비용은 1,200이며 예산을 벗어났습니다.
파일 이름 만 검색하는 경우 다음을 사용하십시오.
svn list -R file:///subversion/repository | grep filename
윈도우 :
svn list -R file:///subversion/repository | findstr filename
그렇지 않으면 체크 아웃하고 파일 시스템 검색을 수행하십시오.
egrep -r _code_ .
이 sourceforge.net/projects/svn-search은 .
SVN 홈에서 직접 SvnQuery라는 Windows 응용 프로그램도 http://svnquery.tigris.org에 있습니다.
Subversion 1.8--search
svn log
부터는 command 와 함께 option을 사용할 수 있습니다 . 이 명령은 저장소 내에서 전체 텍스트 검색을 수행하지 않으며 다음 데이터 만 고려합니다.
- 개정 저자 (
svn:author
버전이없는 재산), - 날짜 (
svn:date
버전이없는 속성) - 로그 메시지 텍스트 (
svn:log
버전이없는 속성) - 변경된 경로 (예 : 특정 개정의 영향을받는 경로) 목록.
다음은 이러한 새로운 검색 옵션에 대한 도움말 페이지입니다.
If the --search option is used, log messages are displayed only if the
provided search pattern matches any of the author, date, log message
text (unless --quiet is used), or, if the --verbose option is also
provided, a changed path.
The search pattern may include "glob syntax" wildcards:
? matches any single character
* matches a sequence of arbitrary characters
[abc] matches any of the characters listed inside the brackets
If multiple --search options are provided, a log message is shown if
it matches any of the provided search patterns. If the --search-and
option is used, that option's argument is combined with the pattern
from the previous --search or --search-and option, and a log message
is shown only if it matches the combined search pattern.
If --limit is used in combination with --search, --limit restricts the
number of log messages searched, rather than restricting the output
to a particular number of matching log messages.
우리는 http://opensolaris.org/os/project/opengrok/
git-svn
해당 저장소의 미러를 작성하십시오 .- git에서 추가되거나 제거 된 문자열을 검색
git log -S'my line of code'
하십시오.gitk
서버와 네트워크 연결을로드하지 않고도 많은 검색을 로컬에서 수행 할 수 있다는 이점이 있습니다.
이 예제는 리포지토리의 전체 내용을 파일로 파이프 한 다음 편집기에서 파일 이름을 빠르게 검색 할 수 있습니다.
svn list -R svn://svn > filelist.txt
이는 저장소가 비교적 정적이며 SVN 서버에서 모든 항목을 반복적으로로드하지 않고 빠른 검색을 수행하려는 경우에 유용합니다.
나는 TRAC를 좋아한다-이 플러그인은 당신의 작업에 도움이 될 것입니다 : http://trac-hacks.org/wiki/RepoSearchPlugin
참고로 FishEye (및 많은 다른 Atlassian 제품)에는 $ 10 Starter Edition이 있으며, FishEye의 경우 5 개의 리포지토리와 최대 10 개의 커미터에 액세스 할 수 있습니다. 이 경우 돈은 자선 단체에 간다.
단일 파일 또는 작은 리포지토리의 기록을 검색하는 경우 고통스럽고 느리게 구현되지만 svn log 및 svn cat 조합이 작동합니다.
svn log filetosearch |
grep '^r' |
cut -f1 -d' ' |
xargs -i bash -c "echo '{}'; svn cat filetosearch -'{}'"
파일이 변경된 각 개정 번호와 파일을 출력합니다. 항상 각 개정판을 다른 파일로 분류 한 다음 변경 사항을 grep 할 수 있습니다.
추신. 이 작업을 올바르게 수행하는 방법을 보여주는 사람에게 대규모 투표를하십시오!
If you're really desperate, do a dump of the repo (look at "svnadmin dump") and then grep through it. It's not pretty, but you can look around the search results to find the metadata that indicates the file and revision, then check it out for a better look.
Not a good solution, to be sure, but it is free :) SVN provides no feature for searching past checkins (or even past log files, AFAIK).
A lot of SVN repos are "simply" HTTP sites, so you might consider looking at some off the shelf "web crawling" search app that you can point at the SVN root and it will give you basic functionality. Updating it will probably be a bit of a trick, perhaps some SVN check in hackery can tickle the index to discard or reindex changes as you go.
Just thinking out loud.
theres krugle and koders but both are expensive. Both have ide plugins for eclipse.
I started using this tool
http://www.supose.org/wiki/supose
It works fine just lacking a visual UI, but is fast and somewhat maintained
// Edit: Tool was already mentioned in another answer, so give all credits to Kuryaki.
Just found SupoSE which is a java based command line tool which scans a repository to create an index and afterwards is able to answer certain kinds of queries. We're still evaluating the tool but it looks promising. It's worth to mention that it makes a full index of all revisions including source code files and common office formats.
참고URL : https://stackoverflow.com/questions/254214/svn-repository-search
'development' 카테고리의 다른 글
값 초기화에 대한 나의 시도는 함수 선언으로 해석되며 왜 A a (()); (0) | 2020.06.08 |
---|---|
.xib 파일과 .storyboard의 차이점은 무엇입니까? (0) | 2020.06.08 |
Angular 2에서 구성 요소를 다시 렌더링하는 방법은 무엇입니까? (0) | 2020.06.07 |
libgcc_s_dw2-1.dll이 누락되어 프로그램을 시작할 수 없습니다 (0) | 2020.06.07 |
Fragments를 사용하여 Android의 각 탭마다 별도의 Back Stack (0) | 2020.06.07 |