fetch pending commits only on pre-receive hooks

This commit is contained in:
Sebastian Sdorra
2011-09-28 09:46:17 +02:00
parent b07810c2d1
commit e056c39435

View File

@@ -96,8 +96,10 @@ public class HgRepositoryHookEvent extends AbstractRepositoryHookEvent
{
try
{
boolean pending = type == RepositoryHookType.PRE_RECEIVE;
changesets = createChangesetViewer().getChangesets(startRev, REV_TIP,
true);
pending);
}
catch (IOException ex)
{