Show More
@@ -50,15 +50,7 b' def checklocalchanges(repo, force=False)' | |||||
50 | cmdutil.checkunfinished(repo) |
|
50 | cmdutil.checkunfinished(repo) | |
51 | s = repo.status() |
|
51 | s = repo.status() | |
52 | if not force: |
|
52 | if not force: | |
53 | if len(repo[None].parents()) > 1: |
|
53 | cmdutil.bailifchanged(repo) | |
54 | _("outstanding uncommitted merge") #i18 tool detection |
|
|||
55 | raise error.Abort(_("outstanding uncommitted merge")) |
|
|||
56 | if s.modified or s.added or s.removed or s.deleted: |
|
|||
57 | _("local changes found") # i18n tool detection |
|
|||
58 | raise error.Abort(_("local changes found")) |
|
|||
59 | if checksubstate(repo): |
|
|||
60 | _("local changed subrepos found") # i18n tool detection |
|
|||
61 | raise error.Abort(_("local changed subrepos found")) |
|
|||
62 | return s |
|
54 | return s | |
63 |
|
55 | |||
64 | def _findupdatetarget(repo, nodes): |
|
56 | def _findupdatetarget(repo, nodes): |
@@ -811,7 +811,7 b' strip with local changes, should complai' | |||||
811 | $ echo y>y |
|
811 | $ echo y>y | |
812 | $ hg add y |
|
812 | $ hg add y | |
813 | $ hg strip tip |
|
813 | $ hg strip tip | |
814 |
abort: |
|
814 | abort: uncommitted changes | |
815 | [255] |
|
815 | [255] | |
816 |
|
816 | |||
817 | --force strip with local changes |
|
817 | --force strip with local changes |
@@ -551,7 +551,7 b' Verify strip protects against stripping ' | |||||
551 |
|
551 | |||
552 | $ echo c > b |
|
552 | $ echo c > b | |
553 | $ hg strip tip |
|
553 | $ hg strip tip | |
554 |
abort: |
|
554 | abort: uncommitted changes | |
555 | [255] |
|
555 | [255] | |
556 | $ hg strip tip --keep |
|
556 | $ hg strip tip --keep | |
557 | saved backup bundle to $TESTTMP/test/.hg/strip-backup/*-backup.hg (glob) |
|
557 | saved backup bundle to $TESTTMP/test/.hg/strip-backup/*-backup.hg (glob) | |
@@ -703,7 +703,7 b' test hg strip -B bookmark' | |||||
703 | $ echo a > a |
|
703 | $ echo a > a | |
704 | $ hg add a |
|
704 | $ hg add a | |
705 | $ hg strip -B B |
|
705 | $ hg strip -B B | |
706 |
abort: |
|
706 | abort: uncommitted changes | |
707 | [255] |
|
707 | [255] | |
708 | $ hg bookmarks |
|
708 | $ hg bookmarks | |
709 | * B 6:ff43616e5d0f |
|
709 | * B 6:ff43616e5d0f |
General Comments 0
You need to be logged in to leave comments.
Login now