Bug 2767 - Revset predicate for convert_revision
Summary: Revset predicate for convert_revision
Status: RESOLVED FIXED
Alias: None
Product: Mercurial
Classification: Unclassified
Component: Mercurial (show other bugs)
Version: unspecified
Hardware: All All
: wish feature
Assignee: Bugzilla
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-15 14:22 UTC by Jesse Glick
Modified: 2012-07-29 15:15 UTC (History)
4 users (show)

See Also:
Python Version: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2011-04-15 14:22 UTC
I ran the convert command to extract parts of one repository into a fresh
one, passing --config convert.hg.saverev=1 which I hoped to be able to use
for scripting purposes. ('hg --debug log' shows this info.) In particular, I
want to go through a list of a few hundred changesets which may or may not
have been imported into the new repository and select only the ones which
were not. Given an original changeset ID, I tried checking 'hg log -k $orig'
but this does not match.

Would be useful to have a predicate such as 'converted($orig)'. Or, more
generally, a predicate 'extra(convert_revision,$orig)' which could be used
to query metadata from any extensions which use extra fields.
Comment 1 Bugzilla 2012-05-12 09:19 UTC

--- Bug imported by bugzilla@serpentine.com 2012-05-12 09:19 EDT  ---

This bug was previously known as _bug_ 2767 at http://mercurial.selenic.com/bts/issue2767

Bug Status was UNCONFIRMED but everconfirmed was true
   Setting status to CONFIRMED

Comment 2 Jesse Glick 2012-05-17 11:19 UTC
The old tracker posted a message which does not seem to have gotten mirrored:

Fixed by http://selenic.com/repo/hg/rev/de4b42daf396
Henrik Stuart <hg@hstuart.dk>
revset: add function for matching extra data (issue2767)

(please test the fix)
Comment 3 Jesse Glick 2012-05-17 11:48 UTC
Successfully used new predicate to find a grafted changeset:

hg log -r 'extra(source, b3bbbce083ac7aa763a4bcbf8ef2123f1681ccca)'