Edgewall Software
Modify

Opened 14 years ago

Closed 14 years ago

#9089 closed defect (fixed)

Regression: Non-numeric revision ids fail

Reported by: acg@… Owned by: Remy Blank
Priority: normal Milestone: 0.12
Component: version control Version: 0.12dev
Severity: major Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

Follow-up to #6654 — which added 0 padding to SVN revision numbers. This breaks git and others. Suggest moving numeric formatting/cast code to svn_fs or similar?

Attachments (0)

Change History (5)

comment:1 by Remy Blank, 14 years ago

Could you please be more precise? Maybe post a link to the relevant ticket for the git plugin?

comment:2 by John Hampton, 14 years ago

Regarding Git, the relevant ticket is th:#6554

I plan on merging Kevin's branch back into the Git plugin in the very near future.

comment:3 by Remy Blank, 14 years ago

Milestone: 0.12
Owner: set to Remy Blank

Ok, in retrospect it wasn't such a great idea to add the padding code to cache.py. I have a working patch that doesn't break the git plugin. Coming shortly.

in reply to:  2 comment:4 by Christian Boos, 14 years ago

Replying to jhampton:

Regarding Git, the relevant ticket is th:#6554

I plan on merging Kevin's branch back into the Git plugin in the very near future.

Seems it has been merged already [TH7695].

So the question is, what kind of breakage do we have here, as the revision ids are still not numbers in the table itself, only strings made of zero-padded ints when inserted via the CachedRepository.

Looking in the plugin and git_fs.py, there's only a !CachedRepository2 subclass with very minimal changes, so no wonder this breaks. What we should have here is a refactoring of the CachedRepository that would have methods to properly encode the revision values when storing and retrieving them from the table. Actually, the CachedRepository itself should probably have no-ops there which should be fine for Git (and Hg!) and we should have a SvnCachedRepository which does the zero-padding.

I should probably do that while implementing #8417.

comment:5 by Remy Blank, 14 years ago

Cc: Remy Blank removed
Resolution: fixed
Status: newclosed

The zero-padding for Subversion was refactored as suggested in [9280], and the git plugin works again.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Remy Blank.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Remy Blank to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.