##// END OF EJS Templates
strip: during merge allow strip only when -f is used...
Taapas Agrawal -
r42670:1acaa9f3 default
parent child Browse files
Show More
@@ -50,6 +50,9 b' def checklocalchanges(repo, force=False,'
50 50 cmdutil.checkunfinished(repo)
51 51 s = repo.status()
52 52 if not force:
53 if len(repo[None].parents()) > 1:
54 _("outstanding uncommitted merge") #i18 tool detection
55 raise error.Abort(_("outstanding uncommitted merge"+ excsuffix))
53 56 if s.modified or s.added or s.removed or s.deleted:
54 57 _("local changes found") # i18n tool detection
55 58 raise error.Abort(_("local changes found" + excsuffix))
@@ -272,7 +272,12 b' before strip of merge parent'
272 272 date: Thu Jan 01 00:00:00 1970 +0000
273 273 summary: c
274 274
275 ##strip not allowed with merge in progress
275 276 $ hg strip 4
277 abort: outstanding uncommitted merge
278 [255]
279 ##strip allowed --force with merge in progress
280 $ hg strip 4 --force
276 281 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
277 282 saved backup bundle to $TESTTMP/test/.hg/strip-backup/*-backup.hg (glob)
278 283
General Comments 0
You need to be logged in to leave comments. Login now