##// END OF EJS Templates
merge: break up a not-so-one-liner for readability...
marmoute -
r49555:00bfd920 default
parent child Browse files
Show More
@@ -1931,10 +1931,9 b' def _update('
1931 hint = _(b"use 'hg update' or check 'hg heads'")
1931 hint = _(b"use 'hg update' or check 'hg heads'")
1932 raise error.Abort(msg, hint=hint)
1932 raise error.Abort(msg, hint=hint)
1933 if not force and (wc.files() or wc.deleted()):
1933 if not force and (wc.files() or wc.deleted()):
1934 raise error.StateError(
1934 msg = _(b"uncommitted changes")
1935 _(b"uncommitted changes"),
1935 hint = _(b"use 'hg status' to list changes")
1936 hint=_(b"use 'hg status' to list changes"),
1936 raise error.StateError(msg, hint=hint)
1937 )
1938 if not wc.isinmemory():
1937 if not wc.isinmemory():
1939 for s in sorted(wc.substate):
1938 for s in sorted(wc.substate):
1940 wc.sub(s).bailifchanged()
1939 wc.sub(s).bailifchanged()
General Comments 0
You need to be logged in to leave comments. Login now