Skip to content

Commit

Permalink
Fix line number anchors in gitweb links.
Browse files Browse the repository at this point in the history
In one case, provide a commit hash so that the line number is relative
to a known commit of the file. I found the commit in bridgedb.git where
the URL was added, then found a commit in torspec.git that was around
the same time and seems to point to the right place.

Subtract one from the line numbers; maybe the old gitweb and the new are
off by one relative to each other.
  • Loading branch information
David Fifield authored and isislovecruft committed Jun 2, 2015
1 parent dea3d6c commit bd6bd83
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/bridgedb/Bridges.py
Expand Up @@ -63,7 +63,7 @@ class BridgeRingParameters(object):
:ivar list needFlags: List of two-tuples of desired flags_ assigned to a
Bridge by the Bridge DirAuth.
.. _flags: https://gitweb.torproject.org/torspec.git/tree/dir-spec.txt#n1696
.. _flags: https://gitweb.torproject.org/torspec.git/tree/dir-spec.txt?id=6b557594ef#n1695
"""

def __init__(self, needPorts=[], needFlags=[]):
Expand Down
2 changes: 1 addition & 1 deletion lib/bridgedb/bridges.py
Expand Up @@ -109,7 +109,7 @@ def update(self, flags):
| "Valid" if the router has been 'validated'.
.. _dir-spec.txt:
https://gitweb.torproject.org/torspec.git/tree/dir-spec.txt?id=7647f6d4d#n1603
https://gitweb.torproject.org/torspec.git/tree/dir-spec.txt?id=7647f6d4d#n1602
:param list flags: A list of strings containing each of the flags
parsed from the 's'-line.
Expand Down

0 comments on commit bd6bd83

Please sign in to comment.