##// END OF EJS Templates
dirstate: split a not-so-one-liner...
marmoute -
r48274:f93298a4 default
parent child Browse files
Show More
@@ -433,9 +433,9 b' class dirstate(object):'
433 if state == b'a' or oldstate == b'r':
433 if state == b'a' or oldstate == b'r':
434 scmutil.checkfilename(f)
434 scmutil.checkfilename(f)
435 if self._map.hastrackeddir(f):
435 if self._map.hastrackeddir(f):
436 raise error.Abort(
436 msg = _(b'directory %r already in dirstate')
437 _(b'directory %r already in dirstate') % pycompat.bytestr(f)
437 msg %= pycompat.bytestr(f)
438 )
438 raise error.Abort(msg)
439 # shadows
439 # shadows
440 for d in pathutil.finddirs(f):
440 for d in pathutil.finddirs(f):
441 if self._map.hastrackeddir(d):
441 if self._map.hastrackeddir(d):
General Comments 0
You need to be logged in to leave comments. Login now