Allow branching from custom/*/main.

Copied from Perforce
 Change: 185845
 ServerID: perforce.ravenbrook.com
This commit is contained in:
David Lovemore 2014-04-28 15:30:37 +01:00
parent 70c0cb9a94
commit cc0a22847d

View file

@ -154,7 +154,7 @@ def main(argv):
m = re.match(CHILD_RE, args.child)
if not m:
raise Error(fmt("Invalid child: {child}"))
if args.customer != m.group(3):
if not args.task and args.customer != m.group(3):
raise Error(fmt("Customer mismatch between {parent} and {child}."))
args.date, args.task, _, args.version = m.groups()