Mercurial > hg > mercurial-crew-with-dirclash
comparison hgext/mq.py @ 3088:7fa3d38a99b6
mq: handle patch names containing ":"
author | Brendan Cully <brendan@kublai.com> |
---|---|
date | Thu, 14 Sep 2006 22:52:47 +0200 |
parents | dc784839516d |
children | 15fde1970003 |
comparison
equal
deleted
inserted
replaced
3087:eeaf9bcdfa25 | 3088:7fa3d38a99b6 |
---|---|
38 commands.norepo += " qclone qversion" | 38 commands.norepo += " qclone qversion" |
39 | 39 |
40 class statusentry: | 40 class statusentry: |
41 def __init__(self, rev, name=None): | 41 def __init__(self, rev, name=None): |
42 if not name: | 42 if not name: |
43 fields = rev.split(':') | 43 fields = rev.split(':', 1) |
44 if len(fields) == 2: | 44 if len(fields) == 2: |
45 self.rev, self.name = fields | 45 self.rev, self.name = fields |
46 else: | 46 else: |
47 self.rev, self.name = None, None | 47 self.rev, self.name = None, None |
48 else: | 48 else: |