##// END OF EJS Templates
Fix typeerror when specifying both --rebase and --pull
Martijn Pieters -
r8241:dd1b47e1 default
parent child Browse files
Show More
@@ -426,7 +426,7 b' def pullrebase(orig, ui, repo, *args, **'
426 'Call rebase after pull if the latter has been invoked with --rebase'
426 'Call rebase after pull if the latter has been invoked with --rebase'
427 if opts.get('rebase'):
427 if opts.get('rebase'):
428 if opts.get('update'):
428 if opts.get('update'):
429 del opts.get['update']
429 del opts['update']
430 ui.debug(_('--update and --rebase are not compatible, ignoring '
430 ui.debug(_('--update and --rebase are not compatible, ignoring '
431 'the update flag\n'))
431 'the update flag\n'))
432
432
@@ -53,6 +53,10 b" hg pull --rebase 2>&1 | sed 's/\\(pulling"
53 hg glog --template '{rev}\n' -l 1
53 hg glog --template '{rev}\n' -l 1
54
54
55 echo
55 echo
56 echo "% pull --rebase --update should ignore --update"
57 hg pull --rebase --update 2>&1 | sed 's/\(pulling from \).*/\1/'
58
59 echo
56 echo "% pull --rebase doesn't update if nothing has been pulled"
60 echo "% pull --rebase doesn't update if nothing has been pulled"
57 hg up 1
61 hg up 1
58 hg pull --rebase 2>&1 | sed 's/\(pulling from \).*/\1/'
62 hg pull --rebase 2>&1 | sed 's/\(pulling from \).*/\1/'
@@ -44,6 +44,11 b' nothing to rebase'
44 @ 2
44 @ 2
45 |
45 |
46
46
47 % pull --rebase --update should ignore --update
48 pulling from
49 searching for changes
50 no changes found
51
47 % pull --rebase doesn't update if nothing has been pulled
52 % pull --rebase doesn't update if nothing has been pulled
48 0 files updated, 0 files merged, 1 files removed, 0 files unresolved
53 0 files updated, 0 files merged, 1 files removed, 0 files unresolved
49 pulling from
54 pulling from
General Comments 0
You need to be logged in to leave comments. Login now