diff options
Diffstat (limited to 'src/repository.cpp')
-rw-r--r-- | src/repository.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/repository.cpp b/src/repository.cpp index 1cb7c41..bec114b 100644 --- a/src/repository.cpp +++ b/src/repository.cpp @@ -201,7 +201,11 @@ void Repository::Transaction::commit() s << "committer " << author << ' ' << datetime << " -0000" << endl; Branch &br = repository->branches[branch]; - Q_ASSERT(br.created); + if (!br.created) { + qWarning() << "Branch" << branch << "doesn't exist at revision" + << revnum << "-- did you resume from the wrong revision?"; + br.created = revnum; + } s << "data " << message.length() << endl; } |