summaryrefslogtreecommitdiffstats
path: root/project.py
diff options
context:
space:
mode:
authorShawn O. Pearce <sop@google.com>2008-10-30 11:06:57 -0700
committerShawn O. Pearce <sop@google.com>2008-10-30 11:06:57 -0700
commit23d7781c0bac53b24f4598104e8ba38310e8d100 (patch)
treeb3b7f729746c96225f12177c111b3429f2da86a4 /project.py
parenta54c527ae941a3bbf8b3ec54249ab12c3d6bf78b (diff)
downloadgit-repo-23d7781c0bac53b24f4598104e8ba38310e8d100.tar.gz
Don't print "Already up-to-date" during repo syncv1.0.8
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>
Diffstat (limited to 'project.py')
-rw-r--r--project.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/project.py b/project.py
index b8a347d9..ffbdfd1c 100644
--- a/project.py
+++ b/project.py
@@ -563,7 +563,7 @@ class Project(object):
563 _info("[%s] Consider merging or rebasing the" 563 _info("[%s] Consider merging or rebasing the"
564 " unpublished commits.", self.name) 564 " unpublished commits.", self.name)
565 return True 565 return True
566 else: 566 elif upstream_gain:
567 # We can fast-forward safely. 567 # We can fast-forward safely.
568 # 568 #
569 try: 569 try:
@@ -572,6 +572,10 @@ class Project(object):
572 return False 572 return False
573 self._CopyFiles() 573 self._CopyFiles()
574 return True 574 return True
575 else:
576 # Trivially no changes in the upstream.
577 #
578 return True
575 579
576 if merge == rev: 580 if merge == rev:
577 try: 581 try: