##// END OF EJS Templates
cmdutil: strip "%m" pattern (first line of commit message) from both ends...
Yuya Nishihara -
r36525:165cf863 default
parent child Browse files
Show More
@@ -898,7 +898,7 b' def makefilename(ctx, pat,'
898 'R': lambda: '%d' % ctx.rev(),
898 'R': lambda: '%d' % ctx.rev(),
899 'h': lambda: short(ctx.node()),
899 'h': lambda: short(ctx.node()),
900 'm': lambda: re.sub('[^\w]', '_',
900 'm': lambda: re.sub('[^\w]', '_',
901 ctx.description().rstrip().splitlines()[0]),
901 ctx.description().strip().splitlines()[0]),
902 'r': lambda: ('%d' % ctx.rev()).zfill(revwidth or 0),
902 'r': lambda: ('%d' % ctx.rev()).zfill(revwidth or 0),
903 '%': lambda: '%',
903 '%': lambda: '%',
904 'b': lambda: os.path.basename(ctx.repo().root),
904 'b': lambda: os.path.basename(ctx.repo().root),
@@ -184,7 +184,7 b' Checking if only alphanumeric characters'
184 $ hg commit -m " !\"#$%&(,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]"'^'"_\`abcdefghijklmnopqrstuvwxyz{|}~"
184 $ hg commit -m " !\"#$%&(,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]"'^'"_\`abcdefghijklmnopqrstuvwxyz{|}~"
185 $ hg export -v -o %m.patch tip
185 $ hg export -v -o %m.patch tip
186 exporting patch:
186 exporting patch:
187 ____________0123456789_______ABCDEFGHIJKLMNOPQRSTUVWXYZ______abcdefghijklmnopqrstuvwxyz____.patch
187 ___________0123456789_______ABCDEFGHIJKLMNOPQRSTUVWXYZ______abcdefghijklmnopqrstuvwxyz____.patch
188
188
189 Invalid pattern in file name:
189 Invalid pattern in file name:
190
190
General Comments 0
You need to be logged in to leave comments. Login now