feature: implements mid trimming long text; implements repo length truncation
This commit is contained in:
parent
1906b1960f
commit
e0b2043c71
21 changed files with 311 additions and 96 deletions
|
|
@ -113,7 +113,7 @@ def get_diff_info(source_repo, source_ref, target_repo, target_ref, get_authors=
|
|||
target_scm = target_repo.scm_instance()
|
||||
|
||||
ancestor_id = target_scm.get_common_ancestor(target_ref, source_ref, source_scm)
|
||||
if not ancestor_id:
|
||||
if not ancestor_id or (isinstance(ancestor_id, str) and ancestor_id.lower() == "none"):
|
||||
raise ValueError(
|
||||
"cannot calculate diff info without a common ancestor. "
|
||||
"Make sure both repositories are related, and have a common forking commit."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue