##// END OF EJS Templates
rebase: make dry-run return 1 or 0 according to result...
Sushil khanchi -
r38462:e6b643cc @53 default
parent child Browse files
Show More
@@ -825,8 +825,10 b' def rebase(ui, repo, **opts):'
825 **opts)
825 **opts)
826 except error.InMemoryMergeConflictsError:
826 except error.InMemoryMergeConflictsError:
827 ui.status(_('hit a merge conflict\n'))
827 ui.status(_('hit a merge conflict\n'))
828 return 1
828 else:
829 else:
829 ui.status(_('there will be no conflict, you can rebase\n'))
830 ui.status(_('there will be no conflict, you can rebase\n'))
831 return 0
830 finally:
832 finally:
831 _origrebase(ui, repo, abort=True)
833 _origrebase(ui, repo, abort=True)
832 elif inmemory:
834 elif inmemory:
@@ -287,6 +287,7 b' Make a conflict:'
287 rollback completed
287 rollback completed
288 hit a merge conflict
288 hit a merge conflict
289 rebase aborted
289 rebase aborted
290 [1]
290 $ hg diff
291 $ hg diff
291 $ hg status
292 $ hg status
292 $ hg log -G --template "{rev}:{short(node)} {person(author)}\n{firstline(desc)} {topic}\n\n"
293 $ hg log -G --template "{rev}:{short(node)} {person(author)}\n{firstline(desc)} {topic}\n\n"
@@ -322,3 +323,4 b' Check dryrun working with --collapse whe'
322 merging e
323 merging e
323 hit a merge conflict
324 hit a merge conflict
324 rebase aborted
325 rebase aborted
326 [1]
General Comments 0
You need to be logged in to leave comments. Login now