equal
deleted
inserted
replaced
953 Use the command :hg:`update` to switch to an existing branch. Use |
953 Use the command :hg:`update` to switch to an existing branch. Use |
954 :hg:`commit --close-branch` to mark this branch as closed. |
954 :hg:`commit --close-branch` to mark this branch as closed. |
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 |
961 |
964 |
962 wlock = repo.wlock() |
965 wlock = repo.wlock() |