[PATCH] dirstate: remove obsolete comment from setbranch

Tim Henigan tim.henigan at gmail.com
Thu Nov 29 10:51:55 CST 2012


# HG changeset patch
# User Tim Henigan <tim.henigan at gmail.com>
# Date 1354196694 18000
# Node ID 1683bca3175285d482633c4c7ed2231b338f6738
# Parent  e853d27956fb0a25dcaac29b18bb0d5719297830
dirstate: remove obsolete comment from setbranch

This comment should have been removed in e689b0d91546, when the call
to scmutil.checknewlabel was removed.

diff --git a/mercurial/dirstate.py b/mercurial/dirstate.py
--- a/mercurial/dirstate.py
+++ b/mercurial/dirstate.py
@@ -260,7 +260,6 @@
         return copies
 
     def setbranch(self, branch):
-        # no repo object here, just check for reserved names
         self._branch = encoding.fromlocal(branch)
         f = self._opener('branch', 'w', atomictemp=True)
         try:


More information about the Mercurial-devel mailing list