[patch] osutil and isdigit bugs

Bug #318839 reported by Yoan Blanc
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Trac-Bzr
Fix Released
Undecided
Martin von Gagern

Bug Description

I managed to install a trac + tracbzr on Gentoo (easy_install + manual install from here) and hit two little bugs, I bodged them, but it works now.

* osutil vs osutils
* and isdigit() called on int instead str.

Related branches

Revision history for this message
Yoan Blanc (greut) wrote :
Revision history for this message
Jelmer Vernooij (jelmer) wrote : Re: [Bug 318839] Re: [patch] osutil and isdigit bugs

Thanks for the bugreport.

This patch doesn't look right. _parse_rev() should already receive a
string as its argument, and so the various conversions to strings in
your patch aren't necessary.

I've committed the typo fixes for the osutils module name.
--
Jelmer Vernooij <email address hidden> - http://samba.org/~jelmer/
Jabber: <email address hidden>

Revision history for this message
Yoan Blanc (greut) wrote :

Repository checkins event provider (ChangesetModule) failed:
AttributeError: 'int' object has no attribute 'isdigit'

Apparently the "rev" that _parse_rev gets is sometimes an int.

btw, I've got a strange empty changeset: "Changeset [null:]" both issues are maybe linked.

Revision history for this message
Fran Boon (flavour) wrote :

I just got bitten by upgrading trac-bzr & getting this error:
AttributeError: 'int' object has no attribute 'isdigit'

To workaround the issue, I moved my tree into a 'trunk' sub-folder of the repo (previously all was at the top-level)
Now all my links to changesets which were in style ',84' are broken - I need to replace with 'trunk,84'

No big issue for me as few links so far, but not good for breaking backwards compatiblity...

Many thanks for the useful tool :)

Fran.

Revision history for this message
Yoan Blanc (greut) wrote :

I can still get this using the vanilla version :

    Repository checkins event provider (ChangesetModule) failed:
    AttributeError: 'int' object has no attribute 'isdigit'

Do you think there is a way to write a test for that?

Cheers,

Revision history for this message
Martin von Gagern (gagern) wrote :
Changed in trac-bzr:
assignee: nobody → Martin von Gagern (gagern)
milestone: none → 0.3.0
status: New → Fix Committed
Revision history for this message
Yoan Blanc (greut) wrote :

Epic win, thanks!

Changed in trac-bzr:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.