##// END OF EJS Templates
bundle: display info about secret changets while no sharable changeset found
Alain Leufroy <alain.leufroyATgmailMYDOTcom> -
r15991:85ec8036 stable
parent child Browse files
Show More
@@ -994,7 +994,11 b' def bundle(ui, repo, fname, dest=None, *'
994 force=opts.get('force'))
994 force=opts.get('force'))
995 cg = repo.getlocalbundle('bundle', outgoing)
995 cg = repo.getlocalbundle('bundle', outgoing)
996 if not cg:
996 if not cg:
997 ui.status(_("no changes found\n"))
997 if 'outgoing' in locals() and outgoing.excluded:
998 repo.ui.status(_("no changes found but %i secret changesets\n")
999 % len(outgoing.excluded))
1000 else:
1001 ui.status(_("no changes found\n"))
998 return 1
1002 return 1
999
1003
1000 bundletype = opts.get('type', 'bzip2').lower()
1004 bundletype = opts.get('type', 'bzip2').lower()
@@ -39,6 +39,15 b' Setting up test'
39 $ cd ..
39 $ cd ..
40 $ hg init empty
40 $ hg init empty
41
41
42 Bundle and phase
43
44 $ hg -R test phase --force --secret 0
45 $ hg -R test bundle phase.hg empty
46 searching for changes
47 no changes found but 9 secret changesets
48 [1]
49 $ hg -R test phase --draft -r 'head()'
50
42 Bundle --all
51 Bundle --all
43
52
44 $ hg -R test bundle --all all.hg
53 $ hg -R test bundle --all all.hg
General Comments 0
You need to be logged in to leave comments. Login now