tests/test-rename.out
changeset 5610 2493a478f395
parent 5329 7e6138cb8d38
child 8518 3f4f14eab085
equal deleted inserted replaced
5609:a783d3627144 5610:2493a478f395
    27 A d1/d11/e
    27 A d1/d11/e
    28   d2/b
    28   d2/b
    29 R d2/b
    29 R d2/b
    30 1 files updated, 0 files merged, 1 files removed, 0 files unresolved
    30 1 files updated, 0 files merged, 1 files removed, 0 files unresolved
    31 # rename directory d1 as d3
    31 # rename directory d1 as d3
    32 copying d1/a to d3/a
    32 moving d1/a to d3/a
    33 copying d1/b to d3/b
    33 moving d1/b to d3/b
    34 copying d1/ba to d3/ba
    34 moving d1/ba to d3/ba
    35 copying d1/d11/a1 to d3/d11/a1
    35 moving d1/d11/a1 to d3/d11/a1
    36 removing d1/a
       
    37 removing d1/b
       
    38 removing d1/ba
       
    39 removing d1/d11/a1
       
    40 A d3/a
    36 A d3/a
    41   d1/a
    37   d1/a
    42 A d3/b
    38 A d3/b
    43   d1/b
    39   d1/b
    44 A d3/ba
    40 A d3/ba
    49 R d1/b
    45 R d1/b
    50 R d1/ba
    46 R d1/ba
    51 R d1/d11/a1
    47 R d1/d11/a1
    52 4 files updated, 0 files merged, 4 files removed, 0 files unresolved
    48 4 files updated, 0 files merged, 4 files removed, 0 files unresolved
    53 # rename --after directory d1 as d3
    49 # rename --after directory d1 as d3
    54 copying d1/a to d3/a
    50 moving d1/a to d3/a
    55 copying d1/b to d3/b
    51 moving d1/b to d3/b
    56 copying d1/ba to d3/ba
    52 moving d1/ba to d3/ba
    57 copying d1/d11/a1 to d3/d11/a1
    53 moving d1/d11/a1 to d3/d11/a1
    58 removing d1/a
       
    59 removing d1/b
       
    60 removing d1/ba
       
    61 removing d1/d11/a1
       
    62 A d3/a
    54 A d3/a
    63   d1/a
    55   d1/a
    64 A d3/b
    56 A d3/b
    65   d1/b
    57   d1/b
    66 A d3/ba
    58 A d3/ba
    71 R d1/b
    63 R d1/b
    72 R d1/ba
    64 R d1/ba
    73 R d1/d11/a1
    65 R d1/d11/a1
    74 4 files updated, 0 files merged, 4 files removed, 0 files unresolved
    66 4 files updated, 0 files merged, 4 files removed, 0 files unresolved
    75 # move a directory using a relative path
    67 # move a directory using a relative path
    76 copying ../d1/d11/a1 to d3/d11/a1
    68 moving ../d1/d11/a1 to d3/d11/a1
    77 removing ../d1/d11/a1
       
    78 A d2/d3/d11/a1
    69 A d2/d3/d11/a1
    79   d1/d11/a1
    70   d1/d11/a1
    80 R d1/d11/a1
    71 R d1/d11/a1
    81 1 files updated, 0 files merged, 1 files removed, 0 files unresolved
    72 1 files updated, 0 files merged, 1 files removed, 0 files unresolved
    82 # move --after a directory using a relative path
    73 # move --after a directory using a relative path
    83 copying ../d1/d11/a1 to d3/d11/a1
    74 moving ../d1/d11/a1 to d3/d11/a1
    84 removing ../d1/d11/a1
       
    85 A d2/d3/d11/a1
    75 A d2/d3/d11/a1
    86   d1/d11/a1
    76   d1/d11/a1
    87 R d1/d11/a1
    77 R d1/d11/a1
    88 1 files updated, 0 files merged, 1 files removed, 0 files unresolved
    78 1 files updated, 0 files merged, 1 files removed, 0 files unresolved
    89 # move directory d1/d11 to an existing directory d2 (removes empty d1)
    79 # move directory d1/d11 to an existing directory d2 (removes empty d1)
    90 copying d1/d11/a1 to d2/d11/a1
    80 moving d1/d11/a1 to d2/d11/a1
    91 removing d1/d11/a1
       
    92 A d2/d11/a1
    81 A d2/d11/a1
    93   d1/d11/a1
    82   d1/d11/a1
    94 R d1/d11/a1
    83 R d1/d11/a1
    95 1 files updated, 0 files merged, 1 files removed, 0 files unresolved
    84 1 files updated, 0 files merged, 1 files removed, 0 files unresolved
    96 # move directories d1 and d2 to a new directory d3
    85 # move directories d1 and d2 to a new directory d3
    97 copying d1/a to d3/d1/a
    86 moving d1/a to d3/d1/a
    98 copying d1/b to d3/d1/b
    87 moving d1/b to d3/d1/b
    99 copying d1/ba to d3/d1/ba
    88 moving d1/ba to d3/d1/ba
   100 copying d1/d11/a1 to d3/d1/d11/a1
    89 moving d1/d11/a1 to d3/d1/d11/a1
   101 copying d2/b to d3/d2/b
    90 moving d2/b to d3/d2/b
   102 removing d1/a
       
   103 removing d1/b
       
   104 removing d1/ba
       
   105 removing d1/d11/a1
       
   106 removing d2/b
       
   107 A d3/d1/a
    91 A d3/d1/a
   108   d1/a
    92   d1/a
   109 A d3/d1/b
    93 A d3/d1/b
   110   d1/b
    94   d1/b
   111 A d3/d1/ba
    95 A d3/d1/ba
   119 R d1/ba
   103 R d1/ba
   120 R d1/d11/a1
   104 R d1/d11/a1
   121 R d2/b
   105 R d2/b
   122 5 files updated, 0 files merged, 5 files removed, 0 files unresolved
   106 5 files updated, 0 files merged, 5 files removed, 0 files unresolved
   123 # move --after directories d1 and d2 to a new directory d3
   107 # move --after directories d1 and d2 to a new directory d3
   124 copying d1/a to d3/d1/a
   108 moving d1/a to d3/d1/a
   125 copying d1/b to d3/d1/b
   109 moving d1/b to d3/d1/b
   126 copying d1/ba to d3/d1/ba
   110 moving d1/ba to d3/d1/ba
   127 copying d1/d11/a1 to d3/d1/d11/a1
   111 moving d1/d11/a1 to d3/d1/d11/a1
   128 copying d2/b to d3/d2/b
   112 moving d2/b to d3/d2/b
   129 removing d1/a
       
   130 removing d1/b
       
   131 removing d1/ba
       
   132 removing d1/d11/a1
       
   133 removing d2/b
       
   134 A d3/d1/a
   113 A d3/d1/a
   135   d1/a
   114   d1/a
   136 A d3/d1/b
   115 A d3/d1/b
   137   d1/b
   116   d1/b
   138 A d3/d1/ba
   117 A d3/d1/ba
   148 R d2/b
   127 R d2/b
   149 5 files updated, 0 files merged, 5 files removed, 0 files unresolved
   128 5 files updated, 0 files merged, 5 files removed, 0 files unresolved
   150 # move everything under directory d1 to existing directory d2, do not
   129 # move everything under directory d1 to existing directory d2, do not
   151 # overwrite existing files (d2/b)
   130 # overwrite existing files (d2/b)
   152 d2/b: not overwriting - file exists
   131 d2/b: not overwriting - file exists
   153 copying d1/d11/a1 to d2/d11/a1
   132 moving d1/d11/a1 to d2/d11/a1
   154 removing d1/d11/a1
       
   155 A d2/a
   133 A d2/a
   156   d1/a
   134   d1/a
   157 A d2/ba
   135 A d2/ba
   158   d1/ba
   136   d1/ba
   159 A d2/d11/a1
   137 A d2/d11/a1
   171 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
   149 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
   172 # attempt to move potentially more than one file into a non-existent
   150 # attempt to move potentially more than one file into a non-existent
   173 # directory
   151 # directory
   174 abort: with multiple sources, destination must be an existing directory
   152 abort: with multiple sources, destination must be an existing directory
   175 # move every file under d1 to d2/d21 (glob)
   153 # move every file under d1 to d2/d21 (glob)
   176 copying d1/a to d2/d21/a
   154 moving d1/a to d2/d21/a
   177 copying d1/b to d2/d21/b
   155 moving d1/b to d2/d21/b
   178 copying d1/ba to d2/d21/ba
   156 moving d1/ba to d2/d21/ba
   179 copying d1/d11/a1 to d2/d21/a1
   157 moving d1/d11/a1 to d2/d21/a1
   180 removing d1/a
       
   181 removing d1/b
       
   182 removing d1/ba
       
   183 removing d1/d11/a1
       
   184 A d2/d21/a
   158 A d2/d21/a
   185   d1/a
   159   d1/a
   186 A d2/d21/a1
   160 A d2/d21/a1
   187   d1/d11/a1
   161   d1/d11/a1
   188 A d2/d21/b
   162 A d2/d21/b
   193 R d1/b
   167 R d1/b
   194 R d1/ba
   168 R d1/ba
   195 R d1/d11/a1
   169 R d1/d11/a1
   196 4 files updated, 0 files merged, 4 files removed, 0 files unresolved
   170 4 files updated, 0 files merged, 4 files removed, 0 files unresolved
   197 # move --after some files under d1 to d2/d21 (glob)
   171 # move --after some files under d1 to d2/d21 (glob)
   198 copying d1/a to d2/d21/a
   172 moving d1/a to d2/d21/a
   199 copying d1/d11/a1 to d2/d21/a1
   173 moving d1/d11/a1 to d2/d21/a1
   200 removing d1/a
       
   201 removing d1/d11/a1
       
   202 A d2/d21/a
   174 A d2/d21/a
   203   d1/a
   175   d1/a
   204 A d2/d21/a1
   176 A d2/d21/a1
   205   d1/d11/a1
   177   d1/d11/a1
   206 R d1/a
   178 R d1/a
   207 R d1/d11/a1
   179 R d1/d11/a1
   208 2 files updated, 0 files merged, 2 files removed, 0 files unresolved
   180 2 files updated, 0 files merged, 2 files removed, 0 files unresolved
   209 # move every file under d1 starting with an 'a' to d2/d21 (regexp)
   181 # move every file under d1 starting with an 'a' to d2/d21 (regexp)
   210 copying d1/a to d2/d21/a
   182 moving d1/a to d2/d21/a
   211 copying d1/d11/a1 to d2/d21/a1
   183 moving d1/d11/a1 to d2/d21/a1
   212 removing d1/a
       
   213 removing d1/d11/a1
       
   214 A d2/d21/a
   184 A d2/d21/a
   215   d1/a
   185   d1/a
   216 A d2/d21/a1
   186 A d2/d21/a1
   217   d1/d11/a1
   187   d1/d11/a1
   218 R d1/a
   188 R d1/a
   231 A d1/ca
   201 A d1/ca
   232   d1/ba
   202   d1/ba
   233 R d1/ba
   203 R d1/ba
   234 1 files updated, 0 files merged, 1 files removed, 0 files unresolved
   204 1 files updated, 0 files merged, 1 files removed, 0 files unresolved
   235 # do not copy more than one source file to the same destination file
   205 # do not copy more than one source file to the same destination file
   236 copying d1/d11/a1 to d3/d11/a1
   206 moving d1/d11/a1 to d3/d11/a1
   237 d3/b: not overwriting - d2/b collides with d1/b
   207 d3/b: not overwriting - d2/b collides with d1/b
   238 removing d1/d11/a1
       
   239 A d3/a
   208 A d3/a
   240   d1/a
   209   d1/a
   241 A d3/b
   210 A d3/b
   242   d1/b
   211   d1/b
   243 A d3/ba
   212 A d3/ba
   248 R d1/b
   217 R d1/b
   249 R d1/ba
   218 R d1/ba
   250 R d1/d11/a1
   219 R d1/d11/a1
   251 4 files updated, 0 files merged, 4 files removed, 0 files unresolved
   220 4 files updated, 0 files merged, 4 files removed, 0 files unresolved
   252 # move a whole subtree with "hg rename ."
   221 # move a whole subtree with "hg rename ."
   253 copying a to ../d3/d1/a
   222 moving a to ../d3/d1/a
   254 copying b to ../d3/d1/b
   223 moving b to ../d3/d1/b
   255 copying ba to ../d3/d1/ba
   224 moving ba to ../d3/d1/ba
   256 copying d11/a1 to ../d3/d1/d11/a1
   225 moving d11/a1 to ../d3/d1/d11/a1
   257 removing a
       
   258 removing b
       
   259 removing ba
       
   260 removing d11/a1
       
   261 A d3/d1/a
   226 A d3/d1/a
   262   d1/a
   227   d1/a
   263 A d3/d1/b
   228 A d3/d1/b
   264   d1/b
   229   d1/b
   265 A d3/d1/ba
   230 A d3/d1/ba
   270 R d1/b
   235 R d1/b
   271 R d1/ba
   236 R d1/ba
   272 R d1/d11/a1
   237 R d1/d11/a1
   273 4 files updated, 0 files merged, 4 files removed, 0 files unresolved
   238 4 files updated, 0 files merged, 4 files removed, 0 files unresolved
   274 # move a whole subtree with "hg rename --after ."
   239 # move a whole subtree with "hg rename --after ."
   275 copying a to ../d3/a
   240 moving a to ../d3/a
   276 copying b to ../d3/b
   241 moving b to ../d3/b
   277 copying ba to ../d3/ba
   242 moving ba to ../d3/ba
   278 copying d11/a1 to ../d3/d11/a1
   243 moving d11/a1 to ../d3/d11/a1
   279 removing a
       
   280 removing b
       
   281 removing ba
       
   282 removing d11/a1
       
   283 A d3/a
   244 A d3/a
   284   d1/a
   245   d1/a
   285 A d3/b
   246 A d3/b
   286   d1/b
   247   d1/b
   287 A d3/ba
   248 A d3/ba
   292 R d1/b
   253 R d1/b
   293 R d1/ba
   254 R d1/ba
   294 R d1/d11/a1
   255 R d1/d11/a1
   295 4 files updated, 0 files merged, 4 files removed, 0 files unresolved
   256 4 files updated, 0 files merged, 4 files removed, 0 files unresolved
   296 # move the parent tree with "hg rename .."
   257 # move the parent tree with "hg rename .."
   297 copying ../a to ../../d3/a
   258 moving ../a to ../../d3/a
   298 copying ../b to ../../d3/b
   259 moving ../b to ../../d3/b
   299 copying ../ba to ../../d3/ba
   260 moving ../ba to ../../d3/ba
   300 copying a1 to ../../d3/d11/a1
   261 moving a1 to ../../d3/d11/a1
   301 removing ../a
       
   302 removing ../b
       
   303 removing ../ba
       
   304 removing a1
       
   305 A d3/a
   262 A d3/a
   306   d1/a
   263   d1/a
   307 A d3/b
   264 A d3/b
   308   d1/b
   265   d1/b
   309 A d3/ba
   266 A d3/ba
   314 R d1/b
   271 R d1/b
   315 R d1/ba
   272 R d1/ba
   316 R d1/d11/a1
   273 R d1/d11/a1
   317 4 files updated, 0 files merged, 4 files removed, 0 files unresolved
   274 4 files updated, 0 files merged, 4 files removed, 0 files unresolved
   318 # skip removed files
   275 # skip removed files
   319 copying d1/a to d3/a
   276 moving d1/a to d3/a
   320 copying d1/ba to d3/ba
   277 moving d1/ba to d3/ba
   321 copying d1/d11/a1 to d3/d11/a1
   278 moving d1/d11/a1 to d3/d11/a1
   322 removing d1/a
       
   323 removing d1/ba
       
   324 removing d1/d11/a1
       
   325 A d3/a
   279 A d3/a
   326   d1/a
   280   d1/a
   327 A d3/ba
   281 A d3/ba
   328   d1/ba
   282   d1/ba
   329 A d3/d11/a1
   283 A d3/d11/a1