Mercurial > public > mercurial-scm > hg
comparison mercurial/localrepo.py @ 6139:989467e8e3a9
Fix bad behaviour when specifying an invalid date (issue700)
commit (aborts _after_ typing in a commit message)
backout (aborted after the initial revert)
tag (edited .hgtags and couldn't commit)
import (patch applied, then commit fails)
qnew (aborts on bad dates, but writes any valid date into the # Date header)
qrefresh (like qnew)
sign (like tag)
fetch (merge, merge, merge, merge, abort)
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Sun, 17 Feb 2008 21:34:28 +0100 |
parents | 516d8ffede7c |
children | 23ffe82615d8 |
comparison
equal
deleted
inserted
replaced
6138:09847b90beae | 6139:989467e8e3a9 |
---|---|
200 | 200 |
201 user: name of user to use if committing | 201 user: name of user to use if committing |
202 | 202 |
203 date: date tuple to use if committing''' | 203 date: date tuple to use if committing''' |
204 | 204 |
205 date = util.parsedate(date) | |
205 for x in self.status()[:5]: | 206 for x in self.status()[:5]: |
206 if '.hgtags' in x: | 207 if '.hgtags' in x: |
207 raise util.Abort(_('working copy of .hgtags is changed ' | 208 raise util.Abort(_('working copy of .hgtags is changed ' |
208 '(please commit .hgtags manually)')) | 209 '(please commit .hgtags manually)')) |
209 | 210 |