Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add git.multi-gc #7

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

lihuanshuai
Copy link

添加git.multi_gc功能。如果不指定fork的路径列表,与普通gc相同。指定fork_path时认为fork对repo因共享objects存在依赖,这时列出仍各个fork所有refs的有效commits,传递给prune,以保证做prune时不会删除由它们可达的commits

@@ -19,4 +19,4 @@ build
# others
tmp
.ropeproject
venv/
.idea
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

是说换了编辑器了么。。。

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

不得不换

@lihuanshuai lihuanshuai force-pushed the feature-multi-gc branch 4 times, most recently from d501a44 to a70b6b3 Compare September 6, 2014 07:59
git_process(git.reflog, 'expire', all=True)
git_process(git.repack, d=True, l=True, **_OPTS['repack_all'])

que = BfsQue(repository, cnd_fn=lambda commit, repo: commit.id in repo)
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@xtao 使用新的办法,先listall_references,后BFS查找最新的可被解析的commit作为head传入prune

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants