Skip to content

Commit

Permalink
Add display_rev to CachedRepository2
Browse files Browse the repository at this point in the history
  • Loading branch information
scbash committed Oct 19, 2010
1 parent 5cbdfd9 commit fb9a8da
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tracext/git/git_fs.py
Expand Up @@ -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):
Expand Down

0 comments on commit fb9a8da

Please sign in to comment.