Permalink
Browse files

Implement `Repository.display_rev()` for displaying abbreviating sha ids

  • Loading branch information...
1 parent 5441bae commit 3551f77861d14314771400ed2ee68c425d80e5b7 @hvr committed Oct 16, 2010
Showing with 3 additions and 0 deletions.
  1. +3 −0 tracext/git/git_fs.py
@@ -328,6 +328,9 @@ def normalize_rev(self, rev):
raise NoSuchChangeset(rev)
return normrev
+ def display_rev(self, rev):
+ return self.short_rev(rev)
+
def short_rev(self, rev):
return self.git.shortrev(self.normalize_rev(rev), min_len=self._shortrev_len)

0 comments on commit 3551f77

Please sign in to comment.