revert: do smart revert on items with modified properties as well
This commit is contained in:
parent
941f487292
commit
a23c74a70a
3
jsvn
3
jsvn
@ -1235,7 +1235,8 @@ def revert_h(argv, svn, out, config):
|
|||||||
m = re.match(STATUS_LINE_REGEX, line)
|
m = re.match(STATUS_LINE_REGEX, line)
|
||||||
if m is not None:
|
if m is not None:
|
||||||
action = line[0]
|
action = line[0]
|
||||||
if action in ('A', 'M', 'D'):
|
prop_action = line[1]
|
||||||
|
if action in ('A', 'M', 'D') or prop_action == 'M':
|
||||||
fname = m.group(1)
|
fname = m.group(1)
|
||||||
for target in argv:
|
for target in argv:
|
||||||
if fname.startswith(os.getcwd() + os.sep):
|
if fname.startswith(os.getcwd() + os.sep):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user