##// END OF EJS Templates
annotate: append newline after non newline-terminated file listings...
Ion Savin -
r15829:2c480532 default
parent child Browse files
Show More
@@ -299,6 +299,9 b' def annotate(ui, repo, *pats, **opts):'
299 for p, l in zip(zip(*pieces), lines):
299 for p, l in zip(zip(*pieces), lines):
300 ui.write("%s: %s" % ("".join(p), l[1]))
300 ui.write("%s: %s" % ("".join(p), l[1]))
301
301
302 if lines and not lines[-1][1].endswith('\n'):
303 ui.write('\n')
304
302 @command('archive',
305 @command('archive',
303 [('', 'no-decode', None, _('do not pass files through decoders')),
306 [('', 'no-decode', None, _('do not pass files through decoders')),
304 ('p', 'prefix', '', _('directory prefix for files in archive'),
307 ('p', 'prefix', '', _('directory prefix for files in archive'),
@@ -255,6 +255,18 b' missing file'
255 abort: nosuchfile: no such file in rev e9e6b4fa872f
255 abort: nosuchfile: no such file in rev e9e6b4fa872f
256 [255]
256 [255]
257
257
258 annotate file without '\n' on last line
259
260 $ printf "" > c
261 $ hg ci -A -m test -u nobody -d '1 0'
262 adding c
263 $ hg annotate c
264 $ printf "a\nb" > c
265 $ hg ci -m test
266 $ hg annotate c
267 [0-9]+: a (re)
268 [0-9]+: b (re)
269
258 Test annotate with whitespace options
270 Test annotate with whitespace options
259
271
260 $ cd ..
272 $ cd ..
General Comments 0
You need to be logged in to leave comments. Login now