Permalink
Browse files

Add display_rev to CachedRepository2

  • Loading branch information...
1 parent 5cbdfd9 commit fb9a8daf746b293754db09c4dee5f00244bc666c @scbash scbash committed Oct 19, 2010
Showing with 3 additions and 1 deletion.
  1. +3 −1 tracext/git/git_fs.py
View
@@ -35,8 +35,10 @@
import PyGIT
-# for some reason CachedRepository doesn't pass-through short_rev()s
+# for some reason CachedRepository doesn't pass-through short_rev()s or display_rev()s
class CachedRepository2(CachedRepository):
+ def display_rev(self, rev):
+ return self.short_rev(rev)
def short_rev(self, path):
return self.repos.short_rev(path)
def normalize_rev(self, rev):

0 comments on commit fb9a8da

Please sign in to comment.