##// END OF EJS Templates
dispatch: write Abort hint to stderr too
Patrick Mezard -
r11683:757f39fa default
parent child Browse files
Show More
@@ -24,7 +24,7 b' def dispatch(args):'
24 except util.Abort, inst:
24 except util.Abort, inst:
25 sys.stderr.write(_("abort: %s\n") % inst)
25 sys.stderr.write(_("abort: %s\n") % inst)
26 if inst.hint:
26 if inst.hint:
27 sys.stdout.write(_("(%s)\n") % inst.hint)
27 sys.stderr.write(_("(%s)\n") % inst.hint)
28 return -1
28 return -1
29 except error.ParseError, inst:
29 except error.ParseError, inst:
30 if len(inst.args) > 1:
30 if len(inst.args) > 1:
@@ -119,7 +119,7 b' def _runcatch(ui, args):'
119 except util.Abort, inst:
119 except util.Abort, inst:
120 ui.warn(_("abort: %s\n") % inst)
120 ui.warn(_("abort: %s\n") % inst)
121 if inst.hint:
121 if inst.hint:
122 ui.status(_("(%s)\n") % inst.hint)
122 ui.warn(_("(%s)\n") % inst.hint)
123 except ImportError, inst:
123 except ImportError, inst:
124 ui.warn(_("abort: %s!\n") % inst)
124 ui.warn(_("abort: %s!\n") % inst)
125 m = str(inst).split()[-1]
125 m = str(inst).split()[-1]
@@ -183,13 +183,13 b' added 1 changesets with 1 changes to 1 f'
183 % push -f
183 % push -f
184 committing subrepository s
184 committing subrepository s
185 abort: push creates new remote heads on branch 'default'!
185 abort: push creates new remote heads on branch 'default'!
186 (did you forget to merge? use push -f to force)
186 pushing ...sub/t
187 pushing ...sub/t
187 pushing ...sub/t/s/ss
188 pushing ...sub/t/s/ss
188 searching for changes
189 searching for changes
189 no changes found
190 no changes found
190 pushing ...sub/t/s
191 pushing ...sub/t/s
191 searching for changes
192 searching for changes
192 (did you forget to merge? use push -f to force)
193 pushing ...sub/t
193 pushing ...sub/t
194 pushing ...sub/t/s/ss
194 pushing ...sub/t/s/ss
195 searching for changes
195 searching for changes
@@ -300,4 +300,5 b' 1 files updated, 0 files merged, 0 files'
300 created new head
300 created new head
301 committing subrepository s
301 committing subrepository s
302 abort: push creates new remote heads on branch 'default'!
302 abort: push creates new remote heads on branch 'default'!
303 (did you forget to merge? use push -f to force)
303 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
304 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
General Comments 0
You need to be logged in to leave comments. Login now