add a comment about the need of hg._update()
authorBenoit Boissinot <benoit.boissinot@ens-lyon.org>
Sun, 28 Dec 2008 19:59:42 +0100
changeset 7546 c7f48414f3ad
parent 7545 55e997c8bf62
child 7547 4949729ee9ee
add a comment about the need of hg._update()
mercurial/hg.py
--- a/mercurial/hg.py	Sun Dec 28 20:21:20 2008 +0100
+++ b/mercurial/hg.py	Sun Dec 28 19:59:42 2008 +0100
@@ -252,8 +252,6 @@
     note = ", ".join([_("%d files %s") % s for s in stats])
     repo.ui.status("%s\n" % note)
 
-def _update(repo, node): return update(repo, node)
-
 def update(repo, node):
     """update the working directory to node, merging linear changes"""
     stats = _merge.update(repo, node, False, False, None)
@@ -262,6 +260,9 @@
         repo.ui.status(_("use 'hg resolve' to retry unresolved file merges\n"))
     return stats[3] > 0
 
+# naming conflict in clone()
+_update = update
+
 def clean(repo, node, show_stats=True):
     """forcibly switch the working directory to node, clobbering changes"""
     stats = _merge.update(repo, node, False, True, None)