We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cd3e93a commit c9e7c4aCopy full SHA for c9e7c4a
src/repository.cpp
@@ -1121,8 +1121,11 @@ int FastImportRepository::Transaction::commit()
1121
if (br.created && !br.marks.isEmpty() && br.marks.last()) {
1122
parentmark = br.marks.last();
1123
} else {
1124
- qWarning() << "WARN: Branch" << branch << "in repository" << repository->name << "doesn't exist at revision"
1125
- << revnum << "-- did you resume from the wrong revision?";
+ if (revnum > 1) {
+ // Any branch at revision 1 isn't going to exist, so lets not alarm the user.
1126
+ qWarning() << "WARN: Branch" << branch << "in repository" << repository->name << "doesn't exist at revision"
1127
+ << revnum << "-- did you resume from the wrong revision?";
1128
+ }
1129
br.created = revnum;
1130
}
1131
br.commits.append(revnum);
0 commit comments