##// END OF EJS Templates
rhg: add a test for --rev with a hex changeset ID...
Simon Sapin -
r46611:904647f7 default
parent child Browse files
Show More
@@ -70,7 +70,7 b' fn map_rev_error(rev: &str, err: CatRevE'
70 70 )),
71 71 CatRevErrorKind::InvalidRevision => CommandErrorKind::Abort(Some(
72 72 utf8_to_local(&format!(
73 "abort: invalid revision identifier{}\n",
73 "abort: invalid revision identifier {}\n",
74 74 rev
75 75 ))
76 76 .into(),
@@ -85,7 +85,7 b' fn map_rev_error(rev: &str, err: ListRev'
85 85 ListRevTrackedFilesErrorKind::InvalidRevision => {
86 86 CommandErrorKind::Abort(Some(
87 87 utf8_to_local(&format!(
88 "abort: invalid revision identifier{}\n",
88 "abort: invalid revision identifier {}\n",
89 89 rev
90 90 ))
91 91 .into(),
@@ -116,6 +116,26 b' Cat copied file should not display copy '
116 116 $ rhg cat -r 1 copy_of_original
117 117 original content
118 118
119 Specifying revisions by changeset ID
120 $ hg log
121 changeset: 1:41263439dc17
122 tag: tip
123 user: test
124 date: Thu Jan 01 00:00:00 1970 +0000
125 summary: add copy of original
126
127 changeset: 0:1c9e69808da7
128 user: test
129 date: Thu Jan 01 00:00:00 1970 +0000
130 summary: add original
131
132 $ rhg files -r 41263439dc17
133 abort: invalid revision identifier 41263439dc17
134 [255]
135 $ rhg cat -r 41263439dc17 original
136 abort: invalid revision identifier 41263439dc17
137 [255]
138
119 139 Requirements
120 140 $ rhg debugrequirements
121 141 dotencode
General Comments 0
You need to be logged in to leave comments. Login now