Revision 174bbb6e trunk/Pithos.Core/WorkflowState.cs
b/trunk/Pithos.Core/WorkflowState.cs | ||
---|---|---|
41 | 41 |
#endregion |
42 | 42 |
using System; |
43 | 43 |
using System.Collections.Generic; |
44 |
using System.Diagnostics.Contracts; |
|
44 | 45 |
using System.IO; |
45 | 46 |
using System.Linq; |
46 | 47 |
using System.Text; |
... | ... | |
64 | 65 |
|
65 | 66 |
public bool Skip { get; set; } |
66 | 67 |
|
67 |
public string Hash { get; set; } |
|
68 |
public string Hash { get; set; }
|
|
68 | 69 |
public string LastUpdateHash { get; set; } |
70 |
public string ShortHash { get; set; } |
|
69 | 71 |
|
70 | 72 |
/* |
71 | 73 |
public WorkflowState(AccountInfo accountInfo) |
... | ... | |
81 | 83 |
|
82 | 84 |
public WorkflowState(AccountInfo accountInfo, FileState state) |
83 | 85 |
{ |
86 |
if (accountInfo==null) |
|
87 |
throw new ArgumentNullException("accountInfo"); |
|
88 |
if (state==null) |
|
89 |
throw new ArgumentNullException("state"); |
|
90 |
Contract.EndContractBlock(); |
|
91 |
|
|
84 | 92 |
AccountInfo = accountInfo; |
85 | 93 |
Path = state.FilePath.ToLower(); |
86 | 94 |
FileName = System.IO.Path.GetFileName(state.FilePath).ToLower(); |
87 | 95 |
Hash = state.Checksum; |
96 |
ShortHash = state.ShortHash; |
|
88 | 97 |
Status = state.OverlayStatus == FileOverlayStatus.Unversioned |
89 | 98 |
? FileStatus.Created |
90 | 99 |
: state.FileStatus; |
Also available in: Unified diff