Skip to content

Commit 25c4cb1

Browse files
committed
- do_update: print the correct revision when unexpanding the wc
The old "p.linkinfo.lsrcmd5" was completely misleading because update to the latest rev...
1 parent 081037e commit 25c4cb1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

osc/commandline.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4046,10 +4046,10 @@ def do_update(self, subcmd, opts, *args):
40464046
rev = p.linkinfo.xsrcmd5
40474047
print 'Expanding to rev', rev
40484048
elif opts.unexpand_link and p.islink() and p.isexpanded():
4049-
print 'Unexpanding to rev', p.linkinfo.lsrcmd5
40504049
p.update(rev, opts.server_side_source_service_files, opts.limit_size)
40514050
# XXX: calling update again is redundant (see below)
40524051
rev = p.rev
4052+
print 'Unexpanding to rev', rev
40534053
elif (p.islink() and p.isexpanded()) or opts.server_side_source_service_files:
40544054
rev = p.latest_rev(include_service_files=opts.server_side_source_service_files)
40554055

0 commit comments

Comments
 (0)