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)
Note: See
TracTickets for help on using
tickets.