##// END OF EJS Templates
copystore: provide unit to ui.makeprogress()
av6 -
r40671:e5f54c4e stable
parent child Browse files
Show More
@@ -365,7 +365,7 b' def copystore(ui, srcrepo, destpath):'
365 try:
365 try:
366 hardlink = None
366 hardlink = None
367 topic = _('linking') if hardlink else _('copying')
367 topic = _('linking') if hardlink else _('copying')
368 with ui.makeprogress(topic) as progress:
368 with ui.makeprogress(topic, unit=_('files')) as progress:
369 num = 0
369 num = 0
370 srcpublishing = srcrepo.publishing()
370 srcpublishing = srcrepo.publishing()
371 srcvfs = vfsmod.vfs(srcrepo.sharedpath)
371 srcvfs = vfsmod.vfs(srcrepo.sharedpath)
@@ -87,47 +87,47 b' No update, with debug option:'
87
87
88 #if hardlink
88 #if hardlink
89 $ hg --debug clone -U . ../c --config progress.debug=true
89 $ hg --debug clone -U . ../c --config progress.debug=true
90 linking: 1
90 linking: 1 files
91 linking: 2
91 linking: 2 files
92 linking: 3
92 linking: 3 files
93 linking: 4
93 linking: 4 files
94 linking: 5
94 linking: 5 files
95 linking: 6
95 linking: 6 files
96 linking: 7
96 linking: 7 files
97 linking: 8
97 linking: 8 files
98 linked 8 files (reporevlogstore !)
98 linked 8 files (reporevlogstore !)
99 linking: 9 (reposimplestore !)
99 linking: 9 files (reposimplestore !)
100 linking: 10 (reposimplestore !)
100 linking: 10 files (reposimplestore !)
101 linking: 11 (reposimplestore !)
101 linking: 11 files (reposimplestore !)
102 linking: 12 (reposimplestore !)
102 linking: 12 files (reposimplestore !)
103 linking: 13 (reposimplestore !)
103 linking: 13 files (reposimplestore !)
104 linking: 14 (reposimplestore !)
104 linking: 14 files (reposimplestore !)
105 linking: 15 (reposimplestore !)
105 linking: 15 files (reposimplestore !)
106 linking: 16 (reposimplestore !)
106 linking: 16 files (reposimplestore !)
107 linking: 17 (reposimplestore !)
107 linking: 17 files (reposimplestore !)
108 linking: 18 (reposimplestore !)
108 linking: 18 files (reposimplestore !)
109 linked 18 files (reposimplestore !)
109 linked 18 files (reposimplestore !)
110 #else
110 #else
111 $ hg --debug clone -U . ../c --config progress.debug=true
111 $ hg --debug clone -U . ../c --config progress.debug=true
112 linking: 1
112 linking: 1 files
113 copying: 2
113 copying: 2 files
114 copying: 3
114 copying: 3 files
115 copying: 4
115 copying: 4 files
116 copying: 5
116 copying: 5 files
117 copying: 6
117 copying: 6 files
118 copying: 7
118 copying: 7 files
119 copying: 8
119 copying: 8 files
120 copied 8 files (reporevlogstore !)
120 copied 8 files (reporevlogstore !)
121 copying: 9 (reposimplestore !)
121 copying: 9 files (reposimplestore !)
122 copying: 10 (reposimplestore !)
122 copying: 10 files (reposimplestore !)
123 copying: 11 (reposimplestore !)
123 copying: 11 files (reposimplestore !)
124 copying: 12 (reposimplestore !)
124 copying: 12 files (reposimplestore !)
125 copying: 13 (reposimplestore !)
125 copying: 13 files (reposimplestore !)
126 copying: 14 (reposimplestore !)
126 copying: 14 files (reposimplestore !)
127 copying: 15 (reposimplestore !)
127 copying: 15 files (reposimplestore !)
128 copying: 16 (reposimplestore !)
128 copying: 16 files (reposimplestore !)
129 copying: 17 (reposimplestore !)
129 copying: 17 files (reposimplestore !)
130 copying: 18 (reposimplestore !)
130 copying: 18 files (reposimplestore !)
131 copied 18 files (reposimplestore !)
131 copied 18 files (reposimplestore !)
132 #endif
132 #endif
133 $ cd ../c
133 $ cd ../c
@@ -61,13 +61,13 b' Prepare repo r1:'
61 Create hardlinked clone r2:
61 Create hardlinked clone r2:
62
62
63 $ hg clone -U --debug r1 r2 --config progress.debug=true
63 $ hg clone -U --debug r1 r2 --config progress.debug=true
64 linking: 1
64 linking: 1 files
65 linking: 2
65 linking: 2 files
66 linking: 3
66 linking: 3 files
67 linking: 4
67 linking: 4 files
68 linking: 5
68 linking: 5 files
69 linking: 6
69 linking: 6 files
70 linking: 7
70 linking: 7 files
71 linked 7 files
71 linked 7 files
72
72
73 Create non-hardlinked clone r3:
73 Create non-hardlinked clone r3:
General Comments 0
You need to be logged in to leave comments. Login now