stash show bugfix: hide "#info:" lines
This commit is contained in:
parent
37bff0ad69
commit
b97d1a4d1c
3
jsvn
3
jsvn
@ -1107,7 +1107,8 @@ def stash(argv, svn, out):
|
|||||||
stash_fname = get_stash_fname(svn, stash_id)
|
stash_fname = get_stash_fname(svn, stash_id)
|
||||||
fd = open(stash_fname, 'r')
|
fd = open(stash_fname, 'r')
|
||||||
for line in iter(fd.readline, ''):
|
for line in iter(fd.readline, ''):
|
||||||
colordiff(out, line)
|
if not re.match('#info:', line):
|
||||||
|
colordiff(out, line)
|
||||||
fd.close()
|
fd.close()
|
||||||
else:
|
else:
|
||||||
out.write('Invalid stash ID\n')
|
out.write('Invalid stash ID\n')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user