Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add display_rev to CachedRepository2

  • Loading branch information...
commit fb9a8daf746b293754db09c4dee5f00244bc666c 1 parent 5cbdfd9
@scbash scbash authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 tracext/git/git_fs.py
View
4 tracext/git/git_fs.py
@@ -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):
Please sign in to comment.
Something went wrong with that request. Please try again.