Issue 190 - git_export should ignore suspended heads (monotone)

[email protected]
Newsgroups gmane.comp.version-control.monotone.devel
Message-ID <0dbba0fb1d084fea129f99f929f9dcd4@localhost>
Hello,

A new issue has been created and assigned
to you:

190 - git_export should ignore suspended heads
Project: monotone
Status: New
Reported by: joe 23
Labels:
 Type:Defect
 Priority:Medium

Description:

After exporting a branch with suspended revs, git will stop at the suspended rev instead of the correct head.

Either mtn shouldn't export suspended heads or it should tell git to ignore them, if that's possible.

The workaround is to 'mtn local kill_rev $REV' for each known suspended head before exporting.


Steps to reproduce the problem:
-------------------------------

1. mtn up -r p:
2. mtn suspend h:
3. > foo
4. mtn ci foo
5. mtn git_export > ../export.dat
6. cd ../bar
7. git init
8. git fast-import ../export.dat
9. git checkout branchname

The file 'foo' is not there. Git's head is the suspended rev.


Expected result:
----------------
Git is at the correct head.

Actual results:
---------------
Git is at the suspended head.


Output of `mtn version --full`:
-------------------------------
1.0.0

--
Issue: https://code.monotone.ca/p/monotone/issues/190/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.