add debug
This commit is contained in:
parent
ad677d22ce
commit
ddc7403e8d
1 changed files with 8 additions and 0 deletions
|
|
@ -298,11 +298,19 @@ impl XBuilder {
|
|||
match git_res {
|
||||
Ok(repo) => {
|
||||
let mut revwalk = repo.revwalk().expect("Failed to create revwalk");
|
||||
println!("revwalk ok");
|
||||
for cid in revwalk {
|
||||
let commit_id = cid.expect("Failed to get commit id");
|
||||
let commit = repo.find_commit(commit_id).expect("Failed to find commit");
|
||||
|
||||
let commit_time = commit.time();
|
||||
println!(
|
||||
"{}: {} > {} == {}",
|
||||
commit.id(),
|
||||
commit_time.seconds(),
|
||||
last_build_from_base,
|
||||
commit_time.seconds() >= last_build_from_base
|
||||
);
|
||||
if commit_time.seconds() >= last_build_from_base {
|
||||
println!(
|
||||
"Commit {} [{}]",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue