lp:~gagern/trac-bzr/bug177683

Created by Martin von Gagern and last modified
Get this branch:
bzr branch lp:~gagern/trac-bzr/bug177683
Only Martin von Gagern can upload to this branch. If you are Martin von Gagern please log in for upload directions.

Branch merges

Related bugs

Related blueprints

Branch information

Owner:
Martin von Gagern
Project:
Trac-Bzr
Status:
Merged

Recent revisions

74. By Martin von Gagern

Merge warning from LP #274609 fix

73. By Martin von Gagern

Take url quoting into account for test_get_changeset.

Now this test succeeds where it used to cause errors before.

72. By Martin von Gagern

Major rewrite of _parse_rev.

The main functional difference is that revision identifiers without a branch
name are now always interpreted relative to the default branch, i.e. a
branch located at the repository root, with empty relative path. As the
main case distinction between revs with and without branches becomes
obsolete, indentation changes a lot, but actual code not quite as much.

This interpretation is consistent with the interpretation of a revision
number without a branch, consistent with the docstring comment of
_parse_rev, consistent with the way _string_rev_revid handles an empty
branch name. It completes the fix for LP #177683 by handling the revision
parsing, and it answers LP #486795 by choosing alternative 3 described
there.

As a minor side-effect, the implementation does url unquoting first and
interpretation as a (possibly dotted) revno second. So where any url-quoted
string would always have been interpreted as a revid before, it will be
interpreted as a revno now. Since we didn't have any functionality to
urlencode digit-only revids, and as such revids probably don't occur in the
wild in any case, this seems acceptable and consistent.

71. By Martin von Gagern

Merge fix for LP #274609

70. By Martin von Gagern

Do additional conversions to string for trac revision identifiers.
Fixes LP #177683 comment #9.

69. By David Allouche

Fix TypeError, comparison of offset-naive and offset-aware datetimes.

In commit 60, Jelmer said: "All timestamps are utc by default."

That is not true. By default, datetimes are offset-naive,
but Trac uses offset-aware datetimes internally.

68. By Jelmer Vernooij

Avoid _get_weave.

67. By Jelmer Vernooij

Use constants for current: revision.

66. By Jelmer Vernooij

Merge fix for bug 303327.

65. By Jelmer Vernooij

use constants for null: and current:

Branch metadata

Branch format:
Branch format 7
Repository format:
Bazaar repository format 2a (needs bzr 1.16 or later)
This branch contains Public information 
Everyone can see this information.