File: ancestor

package info (click to toggle)
xxdiff 1%3A4.0.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 4,716 kB
  • ctags: 2,245
  • sloc: cpp: 18,495; python: 6,134; sh: 1,543; ansic: 1,535; perl: 308; lex: 284; yacc: 279; lisp: 250; tcl: 213; makefile: 82
file content (33 lines) | stat: -rw-r--r-- 851 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
static void 
calculate_new_manifest_map(manifest_map const & m_old, 
			   manifest_map & m_new,
			   rename_set & renames,
			   app_state & app)
{
  path_set paths;
  work_set work;
  extract_path_set(m_old, paths);
  get_work_set(work);
  if (work.dels.size() > 0)
    L(F("removing %d dead files from manifest\n") %
      work.dels.size());
  if (work.adds.size() > 0)
    L(F("adding %d files to manifest\n") % 
      work.adds.size());
  if (work.renames.size() > 0)
    L(F("renaming %d files in manifest\n") % 
      work.renames.size());
  apply_work_set(work, paths);
  build_manifest_map(paths, m_new, app);
  renames = work.renames;
}


static void 
calculate_new_manifest_map(manifest_map const & m_old, 
			   manifest_map & m_new,
			   app_state & app)
{
  rename_set dummy;
  calculate_new_manifest_map (m_old, m_new, dummy, app);
}