Mercurial > hg4j
diff src/org/tmatesoft/hg/repo/HgChangelog.java @ 386:73e875154afb
Do not fail with empty extras string in changeset
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Mon, 13 Feb 2012 14:52:21 +0100 |
parents | 2fadf8695f8a |
children | 528b6780a8bd |
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/repo/HgChangelog.java Mon Feb 13 14:19:36 2012 +0100 +++ b/src/org/tmatesoft/hg/repo/HgChangelog.java Mon Feb 13 14:52:21 2012 +0100 @@ -284,7 +284,7 @@ String _extras = space2 < _timeString.length() ? _timeString.substring(space2 + 1) : null; Map<String, String> _extrasMap; final String extras_branch_key = "branch"; - if (_extras == null) { + if (_extras == null || _extras.trim().length() == 0) { _extrasMap = Collections.singletonMap(extras_branch_key, HgRepository.DEFAULT_BRANCH_NAME); } else { _extrasMap = new HashMap<String, String>();