##// END OF EJS Templates
merge: check argument value with if/raise instead of an assert...
Augie Fackler -
r43242:71bb9363 default
parent child Browse files
Show More
@@ -1998,10 +1998,15 b' def update(repo, node, branchmerge, forc'
1998 # updatecheck='abort' to better suppport some of these callers.
1998 # updatecheck='abort' to better suppport some of these callers.
1999 if updatecheck is None:
1999 if updatecheck is None:
2000 updatecheck = UPDATECHECK_LINEAR
2000 updatecheck = UPDATECHECK_LINEAR
2001 assert updatecheck in (UPDATECHECK_NONE,
2001 if updatecheck not in (UPDATECHECK_NONE,
2002 UPDATECHECK_LINEAR,
2002 UPDATECHECK_LINEAR,
2003 UPDATECHECK_NO_CONFLICT,
2003 UPDATECHECK_NO_CONFLICT,
2004 )
2004 ):
2005 raise ValueError(r'Invalid updatecheck %r (can accept %r)' % (
2006 updatecheck, (UPDATECHECK_NONE,
2007 UPDATECHECK_LINEAR,
2008 UPDATECHECK_NO_CONFLICT,
2009 )))
2005 # If we're doing a partial update, we need to skip updating
2010 # If we're doing a partial update, we need to skip updating
2006 # the dirstate, so make a note of any partial-ness to the
2011 # the dirstate, so make a note of any partial-ness to the
2007 # update here.
2012 # update here.
General Comments 0
You need to be logged in to leave comments. Login now