Commits

Graham Helliwell committed 09593ae

Update documentation

Comments (0)

Files changed (1)

-'''pull, update and merge in one command (DEPRECATED)'''
+'''pull, update, merge and push in one command'''
 import urllib2
 
 from mercurial.i18n import _
 
 
 def sync(ui, repo, source='default', **opts):
-    """pull changes from a remote repository, merge new changes if needed.
+    """pull changes from a remote repository, merge new changes if needed, and push.
 
     This finds all changes from the repository at the specified path
     or URL and adds them to the local repository.
     Otherwise, the working directory is updated to include the new
     changes.
 
+	Finally a push is performed so that the local and remote are in sync.
+	
+	
     When a merge is needed, the working directory is first updated to
     the newly pulled changes. Local changes are then merged into the
     pulled changes. To switch the merge order, use --switch-parent.
-
+	
     See :hg:`help dates` for a list of formats valid for -d/--date.
 
     Returns 0 on success.