Featured post
branch - mercurial log of changests on merged named branches, but not unmerged -
i want able "hg log" of every changeset appears in graph between changeset1 , changeset2. cannot find way without either a) omitting nodes on named branches merged between changeset1:changset2 or b) including nodes on named branches not ancestors of changeset2
here's "hg glog" of simple example 2 named branches plus default branch. 1 named branch gets merged , nodes relevant, other irrelevant:
@ changeset: 5:e384fe418e9b |\ tag: tip | | parent: 2:7dc7af503071 | | parent: 3:0a9be59d576e | | summary: merge somefeature branch default | | | | o changeset: 4:4e8c9ca127c9 | | | branch: unmerged_feature | | | parent: 1:ef98ad136fa8 | | | summary: change not merged ending changeset | | | | o | changeset: 3:0a9be59d576e | |/ branch: somefeature | | parent: 1:ef98ad136fa8 | | summary: changed b.txt | | o | changeset: 2:7dc7af503071 | summary: changed a.txt | o changeset: 1:ef98ad136fa8 | summary: added b.txt | o changeset: 0:271b22b4ad30 summary: added a.txt
i want log command give me nodes descendent of rev 0 , ancestors of rev 5. except rev 4.
i can info:
hg log -r 0:5 --template "{rev}:branch={branches},desc={desc}\n"
this gives me log entry rev 4, not ancestor of rev 5:
0:branch=,desc=added a.txt 1:branch=,desc=added b.txt 2:branch=,desc=changed a.txt 3:branch=somefeature,desc=changed b.txt 4:branch=unmerged_feature,desc=change not merged ending changeset 5:branch=,desc=merge somefeature branch default
i can little info:
hg log -b default -r 0:5 --template "{rev}:branch={branches},desc={desc}\n"
omits rev 3, descendent of rev 0 , ancestor of rev 5
0:branch=,desc=added a.txt 1:branch=,desc=added b.txt 2:branch=,desc=changed a.txt 5:branch=,desc=merge somefeature branch default
if you're using newer version of mercurial (1.6.0 or higher), can use revsets feature. in case, need ancestors() operator:
hg log --rev ancestors(5)
see hg revsets
more information.
- Get link
- X
- Other Apps
Comments
Post a Comment