Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(674)

Unified Diff: infra/libs/git2/repo.py

Issue 477623003: Add git subtree daemon service. (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@add_dtree_support
Patch Set: address comments Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « infra/libs/git2/ref.py ('k') | infra/libs/git2/test/ref_test.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: infra/libs/git2/repo.py
diff --git a/infra/libs/git2/repo.py b/infra/libs/git2/repo.py
index 9bf21621f6f300f13c92f05375b29e95e2f4aa6e..c6555e75a34af5192439f5fe1c7ba0dab00fc466 100644
--- a/infra/libs/git2/repo.py
+++ b/infra/libs/git2/repo.py
@@ -36,6 +36,9 @@ class Repo(object):
self._commit_cache = collections.OrderedDict()
self._log = LOGGER.getChild('Repo')
+ def __hash__(self):
+ return hash((self._url, self._repo_path))
+
def __getitem__(self, ref):
"""Get a Ref attached to this Repo."""
return Ref(self, ref)
« no previous file with comments | « infra/libs/git2/ref.py ('k') | infra/libs/git2/test/ref_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698