Skip to content

Commit d0fd5a7

Browse files
bheppleMightyCreak
authored andcommitted
Re-instate ability to provide multiple revs eg diffuse -r v1 -r v2 file
1 parent 863cc2e commit d0fd5a7

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/diffuse/main.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def __init__(self, sysconfigdir: str):
113113
'revision',
114114
ord('r'),
115115
GLib.OptionFlags.NONE,
116-
GLib.OptionArg.STRING,
116+
GLib.OptionArg.STRING_ARRAY,
117117
_('File revision <rev>'),
118118
'rev',
119119
)
@@ -287,7 +287,9 @@ def do_command_line(self, command_line):
287287
mode = 'modified'
288288
if 'revision' in options:
289289
# specified revision
290-
revs.append((options['revision'], encoding))
290+
print(options['revision'])
291+
for i in options['revision']:
292+
revs.append((i, encoding))
291293
if 'separate' in options:
292294
funcs[mode](specs, labels, opts)
293295
specs, labels, opts = [], [], {}

0 commit comments

Comments
 (0)