[Bug 4741] New: startrev does not work correctly when converting from Perforce

mercurial-bugs at selenic.com mercurial-bugs at selenic.com
Wed Jul 1 18:26:41 UTC 2015


http://bz.selenic.com/show_bug.cgi?id=4741

          Priority: normal
            Bug ID: 4741
                CC: durin42 at gmail.com, mercurial-devel at selenic.com
          Assignee: bugzilla at selenic.com
           Summary: startrev does not work correctly when converting from
                    Perforce
          Severity: bug
    Classification: Unclassified
                OS: Windows
          Reporter: eug.baranov at gmail.com
          Hardware: PC
            Status: UNCONFIRMED
           Version: 3.4.1
         Component: convert
           Product: Mercurial

Imaging Perforce depot //Test/Stream with the following changelists:

1:
A Foo.txt
A Bar.txt

2:
M Bar.txt
A Qux.txt

Now, when performing standard:

hg convert -s p4 "//Test/Stream/..." Stream-hg

it will correctly create corresponding Mercurial changesets, resulting, when
updated to tip, for you to have Foo.txt, Bar.txt and Qux.txt in your working
directory.

But when you try to start with a specific revision, it unexpectedly ignores
everything existing before that revision, e.g:

hg --config convert.p4.startrev=2 convert -s p4 "//Test/Stream/..." Stream-hg

will create the only changeset with:
A Bar.txt
A Qux.txt

whilst I would expect it to create the only changeset with:
A Foo.txt
A Bar.txt
A Qux.txt

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Mercurial-devel mailing list