changeset 252:adc8466df404 cannam

* Restore branch menu in repo
author Chris Cannam <chris.cannam@soundsoftware.ac.uk>
date Thu, 03 Mar 2011 15:08:45 +0000
parents c2ffbc10233e
children 753f1380d6bc
files app/models/repository/mercurial.rb
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/app/models/repository/mercurial.rb	Thu Mar 03 14:39:01 2011 +0000
+++ b/app/models/repository/mercurial.rb	Thu Mar 03 15:08:45 2011 +0000
@@ -56,7 +56,8 @@
   end
 
   def branches
-    nil
+    bras = scm.branches
+    bras.sort unless bras == %w|default|
   end
 
   def tags