Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9697342
D8806.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
D8806.diff
View Options
diff --git a/swh/loader/git/loader.py b/swh/loader/git/loader.py
--- a/swh/loader/git/loader.py
+++ b/swh/loader/git/loader.py
@@ -38,6 +38,7 @@
from .utils import HexBytes
logger = logging.getLogger(__name__)
+heads_logger = logger.getChild("refs")
class RepoRepresentation:
@@ -78,12 +79,19 @@
if not refs:
return []
+ if heads_logger.isEnabledFor(logging.DEBUG):
+ heads_logger.debug("Heads returned by the git remote:")
+ for name, value in refs.items():
+ heads_logger.debug(" %r: %s", name, value.decode())
+
+ heads_logger.debug("Heads known in the archive:")
# Cache existing heads
local_heads: Set[HexBytes] = set()
for base_snapshot in self.base_snapshots:
for branch_name, branch in base_snapshot.branches.items():
if not branch or branch.target_type == TargetType.ALIAS:
continue
+ heads_logger.debug(" %r: %s", branch_name, branch.target.hex())
local_heads.add(HexBytes(hashutil.hash_to_bytehex(branch.target)))
self.heads = local_heads
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Aug 17, 11:28 PM (1 w, 3 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3216377
Attached To
D8806: Dump all known and remote heads when debugging
Event Timeline
Log In to Comment