Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 2.1, 2.1.1, and 2.1.2

stable repomodel: do not show "Not a head revision" message for empty repositories

Thg was showing the "Not a head revision" message for empty repositories because
the null revision is never part of the _branchheads list. However, showing that
message for empty repos does not make sense since the user _must_ create a new
head to start working on the repo.

Changeset 3120cec1f7ba

Parent f1ffb56159cb

by Angel Ezquerra

Changes to one file · Browse files at 3120cec1f7ba Showing diff from parent f1ffb56159cb Diff from another changeset...

 
588
589
590
591
 
592
593
594
 
588
589
590
 
591
592
593
594
@@ -588,7 +588,7 @@
  msg = '*** ' + _('Working Directory') + ' ***'     for pctx in ctx.parents(): - if pctx.node() not in self.repo._branchheads: + if self.repo._branchheads and pctx.node() not in self.repo._branchheads:   text = _('Not a head revision!')   msg += " " + qtlib.markup(text, fg='red', weight='bold')