##// END OF EJS Templates
convert: add a mode where mercurial_sink skips empty revisions....
convert: add a mode where mercurial_sink skips empty revisions. The getchanges function of some converter_source classes can return some false positives. I.e. they sometimes claim that a file "foo" was changed in some revision, even though its contents are still the same. convert_svn is particularly bad, but I think this can also happen with convert_cvs and, at least in theory, with mercurial_source. For regular conversions this is not really a problem - as long as getfile returns the right contents, we'll get a converted revision with the right contents. But when we use --filemap, this could lead to superfluous revisions being converted. Instead of fixing every converter_source, I decided to change mercurial_sink to work around this problem. When --filemap is used, we're interested only in revisions that touch some specific files. If a revision doesn't change any of these files, then we're not interested in it (at least for revisions with a single parent; merges are special). For mercurial_sink, we abuse this property and rollback a commit if the manifest text hasn't changed. This avoids duplicating the logic from localrepo.filecommit to detect unchanged files.

File last commit:

r3923:27230c29 0.9.3 default
r5378:8a2915f5 default
Show More
test-push-warn.out
78 lines | 2.1 KiB | text/plain | TextLexer
/ tests / test-push-warn.out
Thomas Arendsen Hein
Make hg update more verbose by default (issue12)...
r2175 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
mpm@selenic.com
Warn on pushing unsynced repo or adding new heads...
r816 pushing to ../a
searching for changes
Matt Mackall
correct remote heads test in prepush
r3684 abort: push creates new remote branches!
(did you forget to merge? use push -f to force)
mpm@selenic.com
Warn on pushing unsynced repo or adding new heads...
r816 pulling from ../a
searching for changes
adding changesets
adding manifests
adding file changes
mpm@selenic.com
Update tests
r1043 added 1 changesets with 1 changes to 1 files (+1 heads)
Vadim Gelfer
add merge command. means same thing as "update -m"....
r2019 (run 'hg heads' to see heads, 'hg merge' to merge)
mpm@selenic.com
Warn on pushing unsynced repo or adding new heads...
r816 pushing to ../a
searching for changes
abort: push creates new remote branches!
(did you forget to merge? use push -f to force)
Thomas Arendsen Hein
Make hg update more verbose by default (issue12)...
r2175 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
(branch merge, don't forget to commit)
mpm@selenic.com
Warn on pushing unsynced repo or adding new heads...
r816 pushing to ../a
searching for changes
adding changesets
adding manifests
adding file changes
mpm@selenic.com
Fix long-standing excessive file merges...
r990 added 2 changesets with 1 changes to 1 files
Thomas Arendsen Hein
Fix hg push and hg push -r sometimes creating new heads without --force....
r2021 adding foo
Thomas Arendsen Hein
Make hg update more verbose by default (issue12)...
r2175 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
1 files updated, 0 files merged, 0 files removed, 0 files unresolved
1 files updated, 0 files merged, 0 files removed, 0 files unresolved
Thomas Arendsen Hein
Fix hg push and hg push -r sometimes creating new heads without --force....
r2021 merging foo
Thomas Arendsen Hein
Make hg update more verbose by default (issue12)...
r2175 0 files updated, 1 files merged, 0 files removed, 0 files unresolved
(branch merge, don't forget to commit)
Thomas Arendsen Hein
Fix hg push and hg push -r sometimes creating new heads without --force....
r2021 pushing to ../c
searching for changes
abort: push creates new remote branches!
(did you forget to merge? use push -f to force)
Thomas Arendsen Hein
Don't report an error when closing heads during local push (issue387)
r3803 0
Thomas Arendsen Hein
Fix hg push and hg push -r sometimes creating new heads without --force....
r2021 pushing to ../c
searching for changes
no changes found
Thomas Arendsen Hein
Don't report an error when closing heads during local push (issue387)
r3803 0
Thomas Arendsen Hein
Fix hg push and hg push -r sometimes creating new heads without --force....
r2021 pushing to ../c
searching for changes
Matt Mackall
correct remote heads test in prepush
r3684 abort: push creates new remote branches!
(did you forget to merge? use push -f to force)
Thomas Arendsen Hein
Don't report an error when closing heads during local push (issue387)
r3803 0
pushing to ../c
searching for changes
abort: push creates new remote branches!
(did you forget to merge? use push -f to force)
0
Matt Mackall
correct remote heads test in prepush
r3684 pushing to ../c
searching for changes
Matt Mackall
Revert push new heads logic...
r2109 adding changesets
adding manifests
adding file changes
added 2 changesets with 2 changes to 1 files (+2 heads)
Thomas Arendsen Hein
Don't report an error when closing heads during local push (issue387)
r3803 0
Thomas Arendsen Hein
Fix hg push and hg push -r sometimes creating new heads without --force....
r2021 pushing to ../c
searching for changes
Matt Mackall
Revert push new heads logic...
r2109 adding changesets
adding manifests
adding file changes
Thomas Arendsen Hein
Report on push/pull if heads are merged, too, like for new heads....
r2424 added 1 changesets with 1 changes to 1 files (-1 heads)
Thomas Arendsen Hein
Don't report an error when closing heads during local push (issue387)
r3803 0
Benoit Boissinot
fix calculation of new heads added during push with -r...
r3923 pushing to ../e
searching for changes
adding changesets
adding manifests
adding file changes
added 1 changesets with 1 changes to 1 files
0
pushing to ../e
searching for changes
adding changesets
adding manifests
adding file changes
added 1 changesets with 1 changes to 1 files
0