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

Unified Diff: infra/libs/git2/ref.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 | « no previous file | infra/libs/git2/repo.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: infra/libs/git2/ref.py
diff --git a/infra/libs/git2/ref.py b/infra/libs/git2/ref.py
index 2be8f12c2ae10ebd53552e9bae5c980f996e38da..fe7b3c29deb641f4282e87aa0450221b70c9ca80 100644
--- a/infra/libs/git2/ref.py
+++ b/infra/libs/git2/ref.py
@@ -27,6 +27,9 @@ class Ref(object):
def __ne__(self, other):
return not (self == other)
+ def __hash__(self):
+ return hash((self._repo, self._ref))
+
def __repr__(self):
return 'Ref({_repo!r}, {_ref!r})'.format(**self.__dict__)
« no previous file with comments | « no previous file | infra/libs/git2/repo.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698