Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 176663 Details for
Bug 252727
repoman doesnt commit changelogs to git repos
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
use git-diff-index for interrogation
diff-index.patch (text/plain), 2.26 KB, created by
Zac Medico
on 2008-12-28 20:32:51 UTC
(
hide
)
Description:
use git-diff-index for interrogation
Filename:
MIME Type:
Creator:
Zac Medico
Created:
2008-12-28 20:32:51 UTC
Size:
2.26 KB
patch
obsolete
>Index: bin/repoman >=================================================================== >--- bin/repoman (revision 12358) >+++ bin/repoman (revision 12359) >@@ -746,11 +746,16 @@ > mychanged = [ "./" + elem.split()[-1:][0] for elem in svnstatus if elem and elem[:1] in "MR" ] > mynew = [ "./" + elem.split()[-1:][0] for elem in svnstatus if elem.startswith("A") ] > elif vcs == "git": >- mychanged = os.popen("git ls-files -m --with-tree=HEAD").readlines() >- mychanged = [ "./" + elem[:-1] for elem in mychanged ] >- mynew = os.popen("git diff --cached --name-only --diff-filter=A").readlines() > strip_levels = repolevel - 1 >+ >+ mychanged = os.popen("git diff-index --name-only --diff-filter=M HEAD").readlines() > if strip_levels: >+ mychanged = [elem[repo_subdir_len:] for elem in mychanged \ >+ if elem[:repo_subdir_len] == repo_subdir] >+ mychanged = ["./" + elem[:-1] for elem in mychanged] >+ >+ mynew = os.popen("git diff-index --name-only --diff-filter=A HEAD").readlines() >+ if strip_levels: > mynew = [elem[repo_subdir_len:] for elem in mynew \ > if elem[:repo_subdir_len] == repo_subdir] > mynew = ["./" + elem[:-1] for elem in mynew] >@@ -1742,15 +1747,21 @@ > for prop in props if " - " in prop) > > elif vcs == "git": >- mychanged = os.popen("git ls-files -m --with-tree=HEAD").readlines() >- mychanged = [ "./" + elem[:-1] for elem in mychanged ] >- mynew = os.popen("git diff --cached --name-only --diff-filter=A").readlines() > strip_levels = repolevel - 1 >+ >+ mychanged = os.popen("git diff-index --name-only --diff-filter=M HEAD").readlines() > if strip_levels: >+ mychanged = [elem[repo_subdir_len:] for elem in mychanged \ >+ if elem[:repo_subdir_len] == repo_subdir] >+ mychanged = ["./" + elem[:-1] for elem in mychanged] >+ >+ mynew = os.popen("git diff-index --name-only --diff-filter=A HEAD").readlines() >+ if strip_levels: > mynew = [elem[repo_subdir_len:] for elem in mynew \ > if elem[:repo_subdir_len] == repo_subdir] > mynew = ["./" + elem[:-1] for elem in mynew] >- myremoved = os.popen("git diff --cached --name-only --diff-filter=D").readlines() >+ >+ myremoved = os.popen("git diff-index --name-only --diff-filter=D HEAD").readlines() > if strip_levels: > myremoved = [elem[repo_subdir_len:] for elem in myremoved \ > if elem[:repo_subdir_len] == repo_subdir]
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 252727
: 176663