stash show bugfix: hide "#info:" lines

This commit is contained in:
Josh Holtrop 2012-06-27 12:58:16 -04:00
parent 37bff0ad69
commit b97d1a4d1c

3
jsvn
View File

@ -1107,7 +1107,8 @@ def stash(argv, svn, out):
stash_fname = get_stash_fname(svn, stash_id)
fd = open(stash_fname, 'r')
for line in iter(fd.readline, ''):
colordiff(out, line)
if not re.match('#info:', line):
colordiff(out, line)
fd.close()
else:
out.write('Invalid stash ID\n')