Don't print "Already up-to-date" during repo sync

If we are already up-to-date we just want to display no output.
This means we have to avoid calling "git merge" if there aren't
commits to be merged into the working directory.

Signed-off-by: Shawn O. Pearce <sop@google.com>
diff --git a/project.py b/project.py
index b8a347d..ffbdfd1 100644
--- a/project.py
+++ b/project.py
@@ -563,7 +563,7 @@
           _info("[%s] Consider merging or rebasing the"
                 " unpublished commits.", self.name)
         return True
-      else:
+      elif upstream_gain:
         # We can fast-forward safely.
         #
         try:
@@ -572,6 +572,10 @@
           return False
         self._CopyFiles()
         return True
+      else:
+        # Trivially no changes in the upstream.
+        #
+        return True
 
     if merge == rev:
       try: