rust/hg-core/src/dirstate/parsers.rs
changeset 44973 26114bd6ec60
parent 44541 d880805d5442
child 45357 27424779c5b8
equal deleted inserted replaced
44962:ef8dcee272ac 44973:26114bd6ec60
   133                 },
   133                 },
   134             ));
   134             ));
   135         }
   135         }
   136         let mut new_filename = new_filename.into_vec();
   136         let mut new_filename = new_filename.into_vec();
   137         if let Some(copy) = copy_map.get(filename) {
   137         if let Some(copy) = copy_map.get(filename) {
   138             new_filename.push('\0' as u8);
   138             new_filename.push(b'\0');
   139             new_filename.extend(copy.bytes());
   139             new_filename.extend(copy.bytes());
   140         }
   140         }
   141 
   141 
   142         packed.write_u8(entry.state.into())?;
   142         packed.write_u8(entry.state.into())?;
   143         packed.write_i32::<BigEndian>(entry.mode)?;
   143         packed.write_i32::<BigEndian>(entry.mode)?;