Closed GoogleCodeExporter closed 9 years ago
Patch from Alen Ladavac:
----
def createFilename(filename, comment):
timestring = time.strftime( '%Y-%m-%d_%H-%M' )
name, ext = os.path.splitext(filename)
if '' != comment:
comment = re.sub(r'\W', '_', comment)
comment = re.sub('_+$', '', comment)
comment = comment[:32]
comment = '-' + comment
if '' == ext:
ext = '.zip'
result = '%s_%s%s%s' % (name, timestring, comment, ext)
logging.info( 'Target filename is %s' % result )
return result
----
Original comment by jim.tila...@gmail.com
on 2 Nov 2008 at 6:27
Fixed in: http://code.google.com/p/p4scripts/source/detail?r=9
Original comment by jim.tila...@gmail.com
on 2 Nov 2008 at 6:27
Original comment by jim.tila...@gmail.com
on 2 Nov 2008 at 6:27
Original issue reported on code.google.com by
jim.tila...@gmail.com
on 26 Oct 2008 at 12:45