[PATCH 1 of 2] Add branch information to hg export

Eric Hopper hopper at omnifarious.org
Mon May 14 16:02:52 CDT 2007


On Mon, May 14, 2007 at 09:30:14AM -0700, Brendan Cully wrote:
> Oh right. Well how about breaking patch 2 into two pieces, one for
> --exact and one adding --import-branch? Then I can push --exact right
> away.

I will do that in the next day or so.  I actually think there is some
minor improvement to be had in the patch anyway to make the logic
slightly cleaner anyway.

I will pre-emptively defend --import-branch by saying that one tool I
hope to write sometime is a 'cleanup' tool.  A lot of the various
repository import tools create bogus lists of changed files.  Especially
if they (like my svn2hg script) try to undo keyword substition before
importing.

One way of cleaning this kind of thing up is to export all the changes,
then import them again.  Since they are exported as diffs, files that
have no changes will result in no diff and will be cleaned out of the
changelist after an import.  Making this as cleanly automated as
possible requires the ability to import branch information without the
strict requirements on exactness that --exact imposes.

Have fun (if at all possible),
-- 
"It does me no injury for my neighbor to say there are twenty gods or no God.
It neither picks my pocket nor breaks my leg."  --- Thomas Jefferson
"Go to Heaven for the climate, Hell for the company."  -- Mark Twain
-- Eric Hopper (http://www.omnifarious.org/~hopper) --
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://selenic.com/pipermail/mercurial-devel/attachments/20070514/c6f86ba6/attachment.pgp 


More information about the Mercurial-devel mailing list