Make.proto
author Jan Vrany <jan.vrany@labware.com>
Fri, 19 Feb 2021 08:29:41 +0000
changeset 924 4d92f234f671
parent 493 ea15f4b5bca3
child 840 451ac0f18e60
permissions -rw-r--r--
Rework and fix HGSourceCodeManager >> #revisionLogOf:...directory:module:` This commit changes the logic in two ways: 1. #newestRevision is now the newest revision in the branch that *contains* given file (not necesarily modidfes it). If there are multiple heads in that branch, pretty much random one is returned. This changes old behavior and therefore this commit updates tests. 2. If a specific single revision is requested, i.e., both from and to revisions are the same, revision log with that single revision is returned no matter whether it modifies the file or even contains that file at all. This is essentially a workaround to fix issue #305. Moreover, this commit simplifies the code a lot by delegating all the changeset searching and filtering to mercurial using revset expressions. See https://swing.fit.cvut.cz/projects/stx-jv/ticket/305#comment:3
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
281
2a48dceeaca6 Added new test package (to test extensions stream)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
     1
# Hand-written 
2a48dceeaca6 Added new test package (to test extensions stream)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
     2
#
2a48dceeaca6 Added new test package (to test extensions stream)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
     3
# position in directory hierarchy:
2a48dceeaca6 Added new test package (to test extensions stream)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
     4
TOP=..
2a48dceeaca6 Added new test package (to test extensions stream)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
     5
2a48dceeaca6 Added new test package (to test extensions stream)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
     6
# subdirectories where targets are to be made:
2a48dceeaca6 Added new test package (to test extensions stream)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
     7
SUBDIRS=common mercurial
2a48dceeaca6 Added new test package (to test extensions stream)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
     8
493
ea15f4b5bca3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 281
diff changeset
     9
# subdirectories where targets are to be made:
ea15f4b5bca3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 281
diff changeset
    10
ALLSUBDIRS=$(SUBDIRS) git
ea15f4b5bca3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 281
diff changeset
    11
281
2a48dceeaca6 Added new test package (to test extensions stream)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    12
test: $(TOP)/goodies/builder/reports
2a48dceeaca6 Added new test package (to test extensions stream)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    13
	$(MAKE) -C $(TOP)/goodies/builder/reports
2a48dceeaca6 Added new test package (to test extensions stream)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    14
	$(TOP)/goodies/builder/reports/report-runner.sh -D . -r Builder::TestReport \
2a48dceeaca6 Added new test package (to test extensions stream)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    15
		-p 'stx:libscm/mercurial'