##// 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 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:
54 _("outstanding uncommitted merge") #i18 tool detection
55 raise error.Abort(_("outstanding uncommitted merge"+ excsuffix))
53 if s.modified or s.added or s.removed or s.deleted:
56 if s.modified or s.added or s.removed or s.deleted:
54 _("local changes found") # i18n tool detection
57 _("local changes found") # i18n tool detection
55 raise error.Abort(_("local changes found" + excsuffix))
58 raise error.Abort(_("local changes found" + excsuffix))
@@ -272,7 +272,12 b' before strip of merge parent'
272 date: Thu Jan 01 00:00:00 1970 +0000
272 date: Thu Jan 01 00:00:00 1970 +0000
273 summary: c
273 summary: c
274
274
275 ##strip not allowed with merge in progress
275 $ hg strip 4
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 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
281 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
277 saved backup bundle to $TESTTMP/test/.hg/strip-backup/*-backup.hg (glob)
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