Mercurial > hg
comparison hgext/shelve.py @ 20411:66359d8b8d7e
shelve: add 'changes to' prefix to default shelve message
The shelved changes _could_ perhaps be amended to the parent changeset but it
_is_ not the parent changeset. Using the description from the parent changeset
is thus wrong and confusing.
Instead, add a 'changes to' prefix.
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Mon, 10 Feb 2014 00:53:27 +0100 |
parents | fc5354648224 |
children | e584fc30456b |
comparison
equal
deleted
inserted
replaced
20410:fc5354648224 | 20411:66359d8b8d7e |
---|---|
170 finally: | 170 finally: |
171 if hasmq: | 171 if hasmq: |
172 repo.mq.checkapplied = saved | 172 repo.mq.checkapplied = saved |
173 | 173 |
174 if parent.node() != nullid: | 174 if parent.node() != nullid: |
175 desc = parent.description().split('\n', 1)[0] | 175 desc = "changes to '%s'" % parent.description().split('\n', 1)[0] |
176 else: | 176 else: |
177 desc = '(empty repository)' | 177 desc = '(changes in empty repository)' |
178 | 178 |
179 if not opts['message']: | 179 if not opts['message']: |
180 opts['message'] = desc | 180 opts['message'] = desc |
181 | 181 |
182 name = opts['name'] | 182 name = opts['name'] |