This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | Log usage of external versioning commands | ||
---|---|---|---|
Product: | versioncontrol | Reporter: | Petr Cyhelsky <cyhelsky> |
Component: | Code | Assignee: | Ondrej Vrabec <ovrabec> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | jtulach, thurka |
Priority: | P3 | Keywords: | PERFORMANCE |
Version: | 7.3 | ||
Hardware: | PC | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | |
Bug Depends on: | 223167 | ||
Bug Blocks: | 223819 |
Description
Petr Cyhelsky
2012-11-27 15:55:37 UTC
So, let's sum up.
1) Events will be logged for Mercurial and Git, i am unable to do it for Subversion
2) Only commands touching repository metadata and files in working copy will be logged (update, revert, fetch, but also update which does not affect files in a working copy - and their git equivalents). Basically i will log situations when .hg/wlock is created -> something is happening -> .hg/wlock is deleted
3) Only commands running longer than 3s will be logged
4) Internal commands (actions running from within the IDE) will also be logged with additional information of what command is invoked
5) Logged record will contain: message "USG_VCS_CMD" with additional parameters vcs(0), time(1), modifications(2), command(3) and external(4), where
> 0 - version control kind: HG/GIT
> 1 - time in millis between .hg/wlock creation and deletion
> 2 - number of touched files in the working copy during command's execution
> 3 - name of the invoked command (in case of internal actions) or UNKNOWN in case of an external command
> 4 - TRUE if run in commandline, FALSE if run from within the IDE
Any other requests?
> 3) Only commands running longer than 3s will be logged
why 3s? wasn't it said (by Tomas Hurka) that one of the goals is to figure out how often it happens that users invoke commands externally.
(In reply to comment #2) > > 3) Only commands running longer than 3s will be logged > why 3s? wasn't it said (by Tomas Hurka) that one of the goals is to figure out > how often it happens that users invoke commands externally. Yes, but on the other hand, Ondra was afraid that logs can grow too much. So we are trying to skip those short-lived commands, which are not very important. Integrated into 'main-golden', will be available in build *201212050001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/54ea3d3bf03f User: Ondrej Vrabec <ovrabec@netbeans.org> Log: #222841 - Log usage of external versioning commands adding logging of external and internal git and hg commands Integrated into 'main-golden', will be available in build *201212080001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/59e669f7dedc User: Ondrej Vrabec <ovrabec@netbeans.org> Log: #222841 - Log usage of external versioning commands listening for external hg command more reliable, it should be detected even when the IDE filesystem does not deliver events about wlock file being created |