fix handling of pending changesets during pre receive repository hooks

This commit is contained in:
Sebastian Sdorra
2013-08-07 10:09:14 +02:00
parent e2172a66f9
commit 23dfcd97ae
3 changed files with 23 additions and 1 deletions

View File

@@ -310,6 +310,24 @@ public class HgRepositoryHandler
return diffViewer;
}
/**
* Method description
*
*
* @return
*/
public HgContext getHgContext()
{
HgContext context = hgContextProvider.get();
if (context == null)
{
context = new HgContext();
}
return context;
}
/**
* Method description
*

View File

@@ -76,7 +76,8 @@ public class HgCommandContext implements Closeable
HgRepositoryHandler handler, sonia.scm.repository.Repository repository,
File directory)
{
this(hookManager, handler, repository, directory, false);
this(hookManager, handler, repository, directory,
handler.getHgContext().isPending());
}
/**