##// END OF EJS Templates
avoid a traceback with hg branch newbranch; hg up
Alexis S. L. Carvalho -
r4231:83153299 default
parent child Browse files
Show More
@@ -2563,7 +2563,10 b' def _lookup(repo, node, branch=None):'
2563 node = repo.lookup(node)
2563 node = repo.lookup(node)
2564 else:
2564 else:
2565 wc = repo.workingctx()
2565 wc = repo.workingctx()
2566 try:
2566 node = repo.branchtags()[wc.branch()]
2567 node = repo.branchtags()[wc.branch()]
2568 except KeyError:
2569 raise util.Abort(_("branch %s not found") % wc.branch())
2567 return node
2570 return node
2568
2571
2569 def verify(ui, repo):
2572 def verify(ui, repo):
@@ -46,3 +46,7 b' hg id'
46 hg up -q 1
46 hg up -q 1
47 hg up -q
47 hg up -q
48 hg id
48 hg id
49 hg branch foobar
50 hg up
51
52 exit 0
@@ -81,3 +81,4 b' 67ec16bde7f1575d523313b9bca000f6a6f12dca'
81 % update with no arguments: tipmost revision of the current branch
81 % update with no arguments: tipmost revision of the current branch
82 bf1bc2f45e83
82 bf1bc2f45e83
83 4909a3732169 (foo) tip
83 4909a3732169 (foo) tip
84 abort: branch foobar not found
General Comments 0
You need to be logged in to leave comments. Login now