##// END OF EJS Templates
merge with stable
Kevin Bullock -
r19184:05390cfe merge default
parent child Browse files
Show More
@@ -955,6 +955,9 b' def branch(ui, repo, label=None, **opts)'
955
955
956 Returns 0 on success.
956 Returns 0 on success.
957 """
957 """
958 if label:
959 label = label.strip()
960
958 if not opts.get('clean') and not label:
961 if not opts.get('clean') and not label:
959 ui.write("%s\n" % repo.dirstate.branch())
962 ui.write("%s\n" % repo.dirstate.branch())
960 return
963 return
@@ -85,6 +85,9 b' ones.'
85 be read. Mercurial checks each of these locations in the specified
85 be read. Mercurial checks each of these locations in the specified
86 order until one or more configuration files are detected.
86 order until one or more configuration files are detected.
87
87
88 .. note:: The registry key ``HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Mercurial``
89 is used when running 32-bit Python on 64-bit Windows.
90
88 Syntax
91 Syntax
89 ======
92 ======
90
93
@@ -68,6 +68,18 b' invalid characters'
68 abort: '\n' cannot be used in a name
68 abort: '\n' cannot be used in a name
69 [255]
69 [255]
70
70
71 trailing or leading spaces should be stripped before testing duplicates
72
73 $ hg branch 'b '
74 abort: a branch of the same name already exists
75 (use 'hg update' to switch to it)
76 [255]
77
78 $ hg branch ' b'
79 abort: a branch of the same name already exists
80 (use 'hg update' to switch to it)
81 [255]
82
71 verify update will accept invalid legacy branch names
83 verify update will accept invalid legacy branch names
72
84
73 $ hg init test-invalid-branch-name
85 $ hg init test-invalid-branch-name
General Comments 0
You need to be logged in to leave comments. Login now