# HG changeset patch # User Chris Cannam # Date 1294315626 0 # Node ID 5d8a5ce96163358d9406a3167e70cfb6d2f8b37b # Parent 5978a4b18a8965c618fd16e63f0c6830602441f5# Parent cb8ccbff8f8428a27952f954a4cde3293496408f Merge diff -r cb8ccbff8f84 -r 5d8a5ce96163 filestatuswidget.cpp --- a/filestatuswidget.cpp Thu Jan 06 11:48:56 2011 +0000 +++ b/filestatuswidget.cpp Thu Jan 06 12:07:06 2011 +0000 @@ -97,8 +97,8 @@ m_descriptions[FileStates::Clean] = tr("You have not changed these files."); m_descriptions[FileStates::Modified] = tr("You have changed these files since you last committed them."); - m_descriptions[FileStates::Added] = tr("These files will be added to version control next time you commit."); - m_descriptions[FileStates::Removed] = tr("These files will be removed from version control next time you commit.
" + m_descriptions[FileStates::Added] = tr("These files will be added to version control next time you commit them."); + m_descriptions[FileStates::Removed] = tr("These files will be removed from version control next time you commit them.
" "They will not be deleted from the local folder."); m_descriptions[FileStates::Missing] = tr("These files are recorded in the version control, but absent from your working folder.
" "If you intended to delete them, select them and use Remove to tell the version control system about it.
" diff -r cb8ccbff8f84 -r 5d8a5ce96163 mainwindow.cpp --- a/mainwindow.cpp Thu Jan 06 11:48:56 2011 +0000 +++ b/mainwindow.cpp Thu Jan 06 12:07:06 2011 +0000 @@ -155,9 +155,6 @@ { QMessageBox::about(this, tr("About EasyMercurial"), tr("

About EasyMercurial

" -#ifdef Q_OS_MAC - "" -#endif "

EasyMercurial is a simple user interface for the " "Mercurial version control system.

" "

Credits and Copyright

" @@ -185,10 +182,7 @@ "published by the Free Software Foundation; either version 2 of the " "License, or (at your option) any later version. See the file " "COPYING included with this distribution for more information.

" -#ifdef Q_OS_MAC - "
" -#endif - )); + )); } void MainWindow::clearSelections() @@ -2030,6 +2024,7 @@ bool canUpdate = false; bool haveMerge = false; bool emptyRepo = false; + bool noWorkingCopy = false; int currentBranchHeads = 0; if (currentParents.size() == 1) { @@ -2056,7 +2051,16 @@ } } } else if (currentParents.size() == 0) { - emptyRepo = true; + if (currentHeads.size() == 0) { + // No heads -> empty repo + emptyRepo = true; + } else { + // Heads, but no parents -> no working copy, e.g. we have + // just converted this repo but haven't updated in it yet. + // Uncommon but confusing; probably merits a special case + noWorkingCopy = true; + canUpdate = true; + } } else { haveMerge = true; justMerged = true; @@ -2080,6 +2084,8 @@ hgTabs->setState(tr("(Examining repository)")); } else if (emptyRepo) { hgTabs->setState(tr("Nothing committed to this repository yet")); + } else if (noWorkingCopy) { + hgTabs->setState(tr("No working copy yet: consider updating")); } else if (canMerge) { hgTabs->setState(tr("Awaiting merge on %1").arg(branchText)); } else if (!hgTabs->getAllUnresolvedFiles().empty()) { diff -r cb8ccbff8f84 -r 5d8a5ce96163 version.h --- a/version.h Thu Jan 06 11:48:56 2011 +0000 +++ b/version.h Thu Jan 06 12:07:06 2011 +0000 @@ -1,1 +1,1 @@ -#define EASYHG_VERSION "0.8" +#define EASYHG_VERSION "0.1"