Skip to content

Commit

Permalink
Implement Repository.get_path_url()
Browse files Browse the repository at this point in the history
Since git urls carry no path or revision information we always return
the same clone url regardless of the current shown revision or path.

The url returned is the `url` property associated with the repository.
  • Loading branch information
hvr committed Nov 6, 2010
1 parent 2269612 commit 60cf7b8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tracext/git/git_fs.py
Expand Up @@ -402,6 +402,9 @@ def get_quickjump_entries(self, rev):
for t in self.git.get_tags():
yield 'tags', t, '/', t

def get_path_url(self, path, rev):
return self.params.get('url')

def get_changesets(self, start, stop):
for rev in self.git.history_timerange(to_timestamp(start), to_timestamp(stop)):
yield self.get_changeset(rev)
Expand Down

0 comments on commit 60cf7b8

Please sign in to comment.