Comments
Patch
@@ -1027,8 +1027,8 @@
# standin until a commit. cmdutil.bailifchanged() raises an exception
# if the repo has uncommitted changes. Wrap it to also check if
# largefiles were changed. This is used by bisect, backout and fetch.
-def overridebailifchanged(orig, repo):
- orig(repo)
+def overridebailifchanged(orig, repo, *args, **kwargs):
+ orig(repo, *args, **kwargs)
repo.lfstatus = True
s = repo.status()
repo.lfstatus = False
@@ -253,8 +253,8 @@
return p
-def bailifchanged(repo):
- if repo.dirstate.p2() != nullid:
+def bailifchanged(repo, merge=True):
+ if merge and repo.dirstate.p2() != nullid:
raise util.Abort(_('outstanding uncommitted merge'))
modified, added, removed, deleted = repo.status()[:4]
if modified or added or removed or deleted: