Modify

Opened 3 years ago

#14047 new defect

Unable to get size if path contains space character

Reported by: bear330 Owned by: Cinc-th
Priority: normal Component: SvnCliRemotePlugin
Severity: critical Keywords:
Cc: Trac Release: 1.0

Description

In subversioncli/svn_cli.py", Line 931, get_file_size_rev

       if parts:
927                 if parts[name] == './':
928                     # We want to know the size and revision for the path, not the contents.
929                     # If this is a directory path we end here.
930                     return None, int(parts[changerev])
931                 return int(parts[size]), int(parts[changerev])
932         raise SubversionCliError("Can't get file size and revision for %s %s." % (self.path, self.rev))

get ValueError: invalid literal for int() with base 10: u'Aug' because my "line" variable =

    947 Bear                0 Aug 13 09:04 新文字文件 (2).txt

you see there is a space on my filename. code tries to get size by parts[size] where size = -5 will get a wrong value.

I think there are two parts will contain space: Author and Filename

Thanks.

Attachments (0)

Change History (0)

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain Cinc-th.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.