Opened on 01/12/2015 at 06:36:39 PM
Closed on 01/13/2015 at 12:57:48 PM
#1778 closed change (fixed)
Generate proper build numbers when working with Git repositories
Reported by: | trev | Assignee: | trev |
---|---|---|---|
Priority: | P4 | Milestone: | |
Module: | Automation | Keywords: | |
Cc: | Blocked By: | ||
Blocking: | Platform: | Unknown | |
Ready: | yes | Confidential: | no |
Tester: | Verified working: | ||
Review URL(s): |
https://github.com/adblockplus/buildtools/pull/3 |
Description
Background
Currently, the way we generate build numbers is Mercurial-specific. When no Mercurial repository is present (e.g. for Git repositories) the build number will always be 0 and a misleading error message "abort: there is no Mercurial repository here (.hg not found)" will appear.
What to change
Recognize repository type and don't try running Mercurial commands on directories that aren't Mercurial repositories. Calculate a numerical build number for Git repositories as well.
Attachments (0)
Change History (2)
Note: See
TracTickets for help on using
tickets.
Fixed: https://hg.adblockplus.org/buildtools/rev/be85e6094718